On 4/9/2012 2:24 PM, Andrej Mitrovic wrote:
On 4/9/12, Walter Bright<[email protected]> wrote:
I believe the error message is correct.
I don't know about that. in TDPL p197 it says:
"If you use an object instead of the class name when accessing a
static member, that's fine, too.:
auto c = (new Widget).someStaticMember"
(new Widget) exists. The 'this' doesn't exist in a static function.
It would naturally follow that using 'this' for static members would
be ok as well. Why break code now?
The code is already incorrect. It makes no sense to allow a 'this' which does
not exist.
_______________________________________________
dmd-beta mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-beta