Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

HMA.py [Part II]

Name: Anonymous 2010-09-10 18:37

#!usr/bin/python
from random import randint
anus = randint(1, 1000)
if (anus < 500):
    print "HAX MY ANUS!"
else:
    print "HAX MY ANUS!"

Name: Anonymous 2010-09-10 19:10

Oh look, it's this thread again.

Name: Anonymous 2010-09-10 19:58

Since, we're posting useless code - who can tell me why this macro is basically worthless
(define-syntax define-unsettable
  (syntax-rules ()
    [(_ var val)
     (begin (define tmp val)
            (define-syntax var
              (make-variable-transformer
               (lambda (stx)
                 (syntax-case stx (set!)
                   [id
                    (identifier? #'id)
                    #'tmp]
                   [(set! var value)
                    (syntax-violation 'set!
                                      "Attempted to `set!` an unsettable identier"
                                      stx
                                      #'var)])))))]))

Name: Anonymous 2010-09-10 20:38

>>3
Because it's in sheme.

Name: Anonymous 2010-09-10 21:07

>>4
I laughed.

Name: Anonymous 2010-09-10 22:46

>>3
(module m racket
        (provide get-v)
        (define v 'unsettable-ha-ha-ha)
        (define (get-v) v))

Name: Anonymous 2010-09-11 4:52

>>6
Ding ding ding.
The macro is superfluous for identifiers that are exported by a module [in R6RS and Racket, at least], as they are already unsettable in both the importing and exporting modules. Further, it is useless for a REPL because, without redefining `define', it can be re`define`d which is equivalent to a set. The macro only has use if you want to make a variable that is not being exported, or is an inner definition, unsettable, which is of questionable utility.

Name: Anonymous 2010-09-11 11:46

>>7 is "which is of questionable utility" meme1 a meme?
__________
1 http://www.google.com/search?&q=%22which%20is%20of%20questionable%20utility%22

Name: Anonymous 2010-09-11 13:22

>>8
No, this is how educated people talk.

Name: Anonymous 2010-12-10 15:49

Name: Anonymous 2011-01-31 20:54

<-- check em dubz

Name: Anonymous 2011-02-03 2:30

Name: Anonymous 2013-01-18 23:30

/prog/ will be spammed continuously until further notice. we apologize for any inconvenience this may cause.

Don't change these.
Name: Email:
Entire Thread Thread List