opCall within with

Steve Teale steve.teale at britseyeview.com
Thu Mar 19 02:05:59 PDT 2009


YASQ - say I have

class Glob
{
   int a;
   this(int) { a = n; }
   int opCall(int n) { return n*a; }
}

Glob g = new Glob(2);
with (g)
{
   // should () have any special meaning here?
   int n = (3);
}




More information about the Digitalmars-d mailing list