[racket] there must be function right after parenthesis?

From: Christophe Vandenberghe (chvndb at gmail.com)
Date: Tue Oct 26 03:45:22 EDT 2010

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-bounces at racket-lang.org [mailto:users-bounces at racket-lang.org]
On Behalf Of kty1104 at gmail.com
Sent: dinsdag 26 oktober 2010 9:12
To: users at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20101026/79468b6a/attachment.html>

Posted on the users mailing list.