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

2017-12-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2557 Mike Franklin changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

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

2017-12-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2557 --- Comment #11 from Mike Franklin --- I tested the test case with DMD 2.077.1 and it correctly rejects taking a reference to a non-static member function through the type Also, the "Version" for this PR is listed as "D1 (Retired)". It is my underst

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

2017-12-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2557 Mike Franklin changed: What|Removed |Added CC||slavo5...@yahoo.com --- Comment #10 from Mike

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

2017-12-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2557 Mike Franklin changed: What|Removed |Added See Also||https://issues.dlang.org/sh

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

2009-01-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2557 --- Comment #9 from d...@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 m

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

2009-01-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2557 --- Comment #8 from s...@iname.com 2009-01-12 07:15 --- (In reply to comment #7) > Makes sense. Perhaps, another enhancement report should be created with a > request to change typeof(&A.foo) from void function() to void delegate() wi

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

2009-01-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2557 --- Comment #7 from 2kor...@gmail.com 2009-01-12 04:53 --- Makes sense. Perhaps, another enhancement report should be created with a request to change typeof(&A.foo) from void function() to void delegate() with a dg.ptr being null.

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

2009-01-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2557 --- Comment #6 from s...@iname.com 2009-01-12 03:09 --- (In reply to comment #5) > That's a feature! Even if method is not static, it still has a single unique > body. If so, why can't you take its address? http://www.digitalmars.com

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

2009-01-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2557 --- Comment #5 from 2kor...@gmail.com 2009-01-12 00:26 --- That's a feature! Even if method is not static, it still has a single unique body. If so, why can't you take its address? --

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

2009-01-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2557 --- Comment #4 from s...@iname.com 2009-01-11 19:09 --- But your code tries to use &A.fun, not &a.fun. For &A.fun to make any sense with A being a type, fun would have to be a static method of A. --

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

2009-01-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2557 --- Comment #3 from 2kor...@gmail.com 2009-01-11 17:42 --- (In reply to comment #2) > The code is wrong regardless of whether dofun is static or not. A.fun needs > an > object of type A. But it doesn't have one. > I'm not so sure

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

2009-01-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2557 s...@iname.com changed: What|Removed |Added CC||s...@iname.com Keywords|

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

2009-01-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2557 --- Comment #1 from d...@brian.codekitchen.net 2009-01-05 09:50 --- Created an attachment (id=285) --> (http://d.puremagic.com/issues/attachment.cgi?id=285&action=view) test case --