Pretty please: Named arguments

Andrej Mitrovic andrej.mitrovich at gmail.com
Mon Feb 28 12:14:24 PST 2011


Also the resize method would have to look similar to the first one, I
messed that up, it should be:

void resize(Size size)
{
     if (size.width)
         this.width = size.width;
     if (size.height)
         this.height = size.height;
}


More information about the Digitalmars-d mailing list