<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi Thomas,<br><br>try putting the definitions for Handler and all classes that inherit from it on top of the file, then define OscInterface.<br><br>--- On <b>Thu, 7/10/10, Thomas Girod <i><girodt@gmail.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Thomas Girod <girodt@gmail.com><br>Subject: [chuck-users] broken inheritance ?<br>To: "Chuck Users" <chuck-users@lists.cs.princeton.edu><br>Date: Thursday, 7 October, 2010, 16:37<br><br><div class="plainMail">hi.<br><br>I'm facing a weird issue with inheritance. here is a bit of code :<br><a href="http://pastebin.com/rGFx6pus" target="_blank">http://pastebin.com/rGFx6pus</a><br><br>I have a Handler class that defines a listen() method, and several<br>classes inheriting from Handler.<br><br>Then, when I try to call
 bpm.listen(orec) on line 10, it says "class<br>BpmHandler has no member listen" - even though it should access the one<br>from the Handler class. Any clue ?<br><br>And by the way, I was wondering:<br><br>Handler @ h;<br>new BpmHandler @=> h;<br><br>this won't work, even though it is legit from a OOP inheritance point of<br>view. is it deliberate, or something on the todo list of the dev team ?<br><br>cheers<br><br>tom<br><br>_______________________________________________<br>chuck-users mailing list<br><a ymailto="mailto:chuck-users@lists.cs.princeton.edu" href="/mc/compose?to=chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br><a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br></div></blockquote></td></tr></table><br>