Stack overflow

Namespace rswhite4 at googlemail.com
Sun Jun 24 05:09:38 PDT 2012


On Sunday, 24 June 2012 at 11:55:15 UTC, Jonathan M Davis wrote:
> On Sunday, June 24, 2012 11:35:46 Namespace wrote:
>> > A non-nullable type _will_ be added to Phobos at some point.
>> 
>> As struct or class or as built-in type?
>
> As I said, it will be added to _Phobos_. So, it will be a 
> struct in the
> standard library, not in the language itself. It'll probably be 
> NonNullable!T.
>
> - Jonathan M Davis

You can take my Ref struct. ;)
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?


More information about the Digitalmars-d-learn mailing list