NotNull pointers
dsimcha
dsimcha at yahoo.com
Mon Aug 29 14:09:15 PDT 2011
== Quote from Walter Bright (newshound2 at digitalmars.com)'s article
> On 8/29/2011 1:32 PM, dsimcha wrote:
> > How does it work for member variables of classes and structs? E.g.:
> >
> > // Is this legal or not?
> > struct Foo
> > {
> > NotNull!(int*) notNull;
> >
> > this(int* ptr)
> > {
> > notNull = ptr;
> > }
> > }
> Try it and see! (It works as you'd expect.)
http://d.puremagic.com/test-results/
DMD doesn't even build right now.
More information about the Digitalmars-d
mailing list