[racket] public, override -- how to combine

From: Roman Klochkov (kalimehtar at mail.ru)
Date: Sat May 24 02:16:34 EDT 2014

 Is there a way to make C++ way inheritance: if superclass has the method, then override, else create new?

I see in manual, that public requires " method must not be present already in the superclass" and override requires "definition already present in the superclass".

Is it possible to not restrict the superclass?


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

Posted on the users mailing list.