DMD 0.177 release
Chris Miller
chris at dprogramming.com
Sat Dec 9 07:04:32 PST 2006
Pretty cool stuff.
Suggestion:
Allow static opAssign to return an instance of the class that will be
assigned to the lvalue:
class MyClass
{
this(int x) { }
static MyClass opAssign(int x)
{
return new MyClass(x);
}
}
// ...
MyClass mc;
mc = 3; // keeps mc null.
It seems logical to implement this proposal because to get the desired
effect right now you could do:
mc = mc = 3;
More information about the Digitalmars-d-announce
mailing list