Proposal : allocations made easier with non nullable types.

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Tue Feb 10 12:30:20 PST 2009


Nick Sabalausky wrote:
> "Andrei Alexandrescu" <SeeWebsiteForEmail at erdani.org> wrote in message 
> news:gmsd6o$2h77$1 at digitalmars.com...
>> I must be misunderstanding something. At the highest level, the example 
>> given replaced the terminating node of a list (which traditionally is 
>> null) with a node that had itself as the next node.
>>
>> This means that if you iterate such a list without testing for node == 
>> _end, you will have an infinite loop. This has nothing to do with types.
>>
> 
> ------------------
> class LinkedListNode(T)
[snip]

Oh ok, now I understand. Thanks.

Andrei



More information about the Digitalmars-d mailing list