(new (class object% (super-new) (displayln "hello world") (field ([x 10])) (displayln x)))
On Dec 19, 2012, at 10:07 PM, Chen Xiao wrote: > Why racket's class not like Java have a constructor method? > > I want do something when "new class%". > > Or I should not do anything when new class%? > ____________________ > Racket Users list: > http://lists.racket-lang.org/users ____________________ Racket Users list: http://lists.racket-lang.org/users