References in D

Jonathan M Davis jmdavisProg at gmx.com
Wed Oct 3 17:01:49 PDT 2012


On Wednesday, October 03, 2012 18:14:46 David Nadlinger wrote:
> On Wednesday, 3 October 2012 at 12:56:41 UTC, Franciszek Czekała
> 
> wrote:
> > The need of using null: Every type needs a default value.
> 
> This is just plain wrong. There even is a feature in D which
> solely exists for the purpose of allowing struct types _not_ to
> have a default value (@disable this)…

Which is a _really_ annoying feature for generic code BTW. But it _is_ 
unfortunately true that some types don't work very well with default values, 
much as it would be ideal for them to have one.

- Jonathan M Davis


More information about the Digitalmars-d mailing list