[Issue 3720] Taking address of member functions possible without an instance
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jan 17 07:26:28 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=3720
FeepingCreature <default_357-line at yahoo.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |default_357-line at yahoo.de
--- Comment #15 from FeepingCreature <default_357-line at yahoo.de> ---
Here's a subset of this that should be fixed immediately:
class S {
void fun() { }
static void function() fun2() { return &fun; }
}
There is *no* good reason to allow this, because you can always do &S.fun
explicitly. This looks *way* too innocuous for the horror that it is.
--
More information about the Digitalmars-d-bugs
mailing list