Errors - Re: Signals and Slots

Bill Baxter wbaxter at gmail.com
Mon Nov 13 12:30:59 PST 2006


Walter Bright wrote:
> 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.

I think the one I was hitting was the same as this one I posted with a 
slightly different description:
    http://d.puremagic.com/issues/show_bug.cgi?id=495

But I went ahead and added the class SignalObj(T...) variant of it. 
Both make
   Assertion failure: 'global.errors' on line 2752 in file 'template.c'

--bb




More information about the Digitalmars-d mailing list