Null references (oh no, not again!)

Rainer Deyke rainerd at eldwood.com
Thu Mar 5 14:23:28 PST 2009


Ary Borenszweig wrote:
> I think nullable types can't be optional. How do you implement a linked
> list without them? You use a dummy value for the "no next node"? Naaah...

A nullable type is, conceptually, a container that can contain either
zero or one element.  If there was no language or library support for
nullable types, you could always use a dynamic array or some othet
container instead.


-- 
Rainer Deyke - rainerd at eldwood.com



More information about the Digitalmars-d mailing list