Stack overflow

Namespace rswhite4 at googlemail.com
Sun Jun 24 05:29:10 PDT 2012


On Sunday, 24 June 2012 at 12:19:47 UTC, Jonathan M Davis wrote:
> On Sunday, June 24, 2012 14:09:38 Namespace wrote:
>> And can me now anybody explain why
>> @disable
>> this(typeof(null)); or any other ctor declaration prints "stack
>> overflow"?
>> How it is possible, that one class and one struct kill the 
>> stack?
>
> Please provide a compilable example which exhibits the problem 
> so that we can
> see exactly what you're talking about and reproduce it.
>
> - Jonathan M Davis

http://dpaste.dzfl.pl/ca77bc96

Comment out "alias this" in Foo or "@disable this(typeof(null));" 
in Test solve the problem. Otherwise it prints "Stack overflow".


More information about the Digitalmars-d-learn mailing list