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

Michael Heuer heuermh at gmail.com
Mon Mar 3 14:27:51 EST 2008


Kassen <signal.automatique at gmail.com> wrote:

> 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


More information about the chuck-users mailing list