[chuck-users] extending Event and the order of files

Kassen signal.automatique at gmail.com
Mon Mar 3 14:01:00 EST 2008


Fellow ChucKists.

This has a issue (class 'Trigger' has no member 'broadcast');

=====================-
Trigger trig;
trig.broadcast();


class Trigger extends Event
    {
    int target;
    }
======================

Yet this is fine;

=================-
class Trigger extends Event
    {
    int target;
    }

Trigger trig;
trig.broadcast();
=================

This is quite odd. In general defining classes at the bottom of the file is
ok these days, the problem seems to be in extending Event. I believe this to
be wrong and will add it to the WiKi's list of bugs.

Yours,
Kas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20080303/7465448a/attachment.htm 


More information about the chuck-users mailing list