Errors - Re: Signals and Slots

Walter Bright newshound at digitalmars.com
Mon Nov 13 11:51:52 PST 2006


Bill Baxter wrote:
> *) Can't make a global signal.  With Lutger's versions using objects for 
> signals this wasn't a problem.  But a mixin in the global scope causes a 
> "can't have a dtor outside a class" error.

Why not just put it in a global class instance?

> If you stick with mixins for implementing signals, I think there should 
> probabaly be a simple SignalObj class that wraps a signal. Unfortunately 
>   pretty much anything I've tried along these lines starting with
> 
>      class SignalObj(T...)
>      {
>      }
> 
> currently generates an ICE.

Please post all examples that generate an ICE to bugzilla.



More information about the Digitalmars-d mailing list