[chuck-users] broken inheritance ?

Andreas Apergis conker22904 at yahoo.co.uk
Thu Oct 7 10:44:39 EDT 2010


Oh, and those lines work fine for me:

Handler @ h;
new BpmHandler @=> h;
OscRecv or;
h.listen( or );

I'm on Mac 10.4.11

Cheers

--- On Thu, 7/10/10, Thomas Girod <girodt at gmail.com> wrote:

From: Thomas Girod <girodt at gmail.com>
Subject: [chuck-users] broken inheritance ?
To: "Chuck Users" <chuck-users at lists.cs.princeton.edu>
Date: Thursday, 7 October, 2010, 16:37

hi.

I'm facing a weird issue with inheritance. here is a bit of code :
http://pastebin.com/rGFx6pus

I have a Handler class that defines a listen() method, and several
classes inheriting from Handler.

Then, when I try to call bpm.listen(orec) on line 10, it says "class
BpmHandler has no member listen" - even though it should access the one
from the Handler class. Any clue ?

And by the way, I was wondering:

Handler @ h;
new BpmHandler @=> h;

this won't work, even though it is legit from a OOP inheritance point of
view. is it deliberate, or something on the todo list of the dev team ?

cheers

tom

_______________________________________________
chuck-users mailing list
chuck-users at lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20101007/cd8ba12a/attachment.html>


More information about the chuck-users mailing list