extending Event and the order of files
![](https://secure.gravatar.com/avatar/fa5a8de5c6e6c5838fc8106b390c7a6d.jpg?s=120&d=mm&r=g)
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.
![](https://secure.gravatar.com/avatar/1483ee590c1d64197a0c483a2d39500e.jpg?s=120&d=mm&r=g)
Kassen
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.
I have run into other instances of this problem but haven't been keeping track of them. I will do so on the wiki in the future. michael
participants (2)
-
Kassen
-
Michael Heuer