[racket] How to get arity of make-object?

From: Roman Klochkov (kalimehtar at mail.ru)
Date: Thu Jun 5 11:32:33 EDT 2014

 For any procedure I can use procedure-arity. But how to get the number of init arguments for a class?

Or maybe there are any other way to make a contract, like in Guide 7.3.9, where one can compare number of arguments and arity of the function, but when using (make-object someclass ...)
instead of the function.


-- 
Roman Klochkov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20140605/f0e496fd/attachment.html>

Posted on the users mailing list.