[Issue 2557] inconsistent behavior when taking reference to member without instance

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 14 14:46:47 PST 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2557





------- Comment #9 from d at brian.codekitchen.net  2009-01-14 16:46 -------
> It doesn't work.  "works" means "behaves correctly", not "compiles without error".

I understand the difference between "works" and "compiles', it does work in my
testing. The method body I'm taking a pointer to is empty in the test case but
I first ran into this inconsistency while refactoring some code, where the
method body was *not* empty and the code inside the method executed correctly.
Whether it *should* work or not is certainly debatable, but I find it a useful
behavior except for the inconsistency shown.


-- 



More information about the Digitalmars-d-bugs mailing list