On Thu, Mar 19, 2009 at 5:05 AM, Steve Teale <[email protected]> wrote: > 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); > }
No. Parenthesized expressions are not call expressions.
opCall, however, would be usable:
with(g)
{
int n = opCall(3);
}
