Take the parens out: #lang racket (class object% (super-new) (displayln "hello world") (field (x 10)) (displayln x))
On Dec 19, 2012, at 10:43 PM, Chen Xiao wrote: > class: field element is not an optionally renamed identifier-expression pair > at: ((x 10)) > in: (class object% (super-new) (displayln "hello world") (field ((x 10))) > (displayln x)) > > 2012/12/20 Matthias Felleisen <matth...@ccs.neu.edu> > (new (class object% (super-new) (displayln "hello world") (field ([x 10])) > (displayln x))) >
____________________ Racket Users list: http://lists.racket-lang.org/users