That is just the instantiate syntax,
http://docs.racket-lang.org/reference/objcreation.html?q=instantiate#(form._ ((lib._racket/private/class-internal..rkt)._instantiate)) From: users-boun...@racket-lang.org [mailto:users-boun...@racket-lang.org] On Behalf Of kty1...@gmail.com Sent: dinsdag 26 oktober 2010 9:12 To: users@racket-lang.org Subject: [racket] there must be function right after parenthesis? there must be function right after parenthesis? hello~ while I am learning GUI programming in DrRacket, I don't get how string literal can be placed right after parenthesis such as (define frame (instantiate frame% ("Example"))) (define msg (instantiate message% ("No events so far..." frame))) (instantiate button% ("Pause" frame (lambda (button event) (sleep 5)))) (instantiate button% ("Ok" panel void)) I was thought one of the scheme grammar is there must be a function right after parenthesis and I don't understand how such a code like ((func arg) arg2) works too. could somebody please let me know how it works? thanks in advanced
_________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users