https://issues.dlang.org/show_bug.cgi?id=2557
Mike Franklin changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
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
https://issues.dlang.org/show_bug.cgi?id=2557
Mike Franklin changed:
What|Removed |Added
CC||slavo5...@yahoo.com
--- Comment #10 from Mike
https://issues.dlang.org/show_bug.cgi?id=2557
Mike Franklin changed:
What|Removed |Added
See Also||https://issues.dlang.org/sh
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
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
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.
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
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?
--
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.
--
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
http://d.puremagic.com/issues/show_bug.cgi?id=2557
s...@iname.com changed:
What|Removed |Added
CC||s...@iname.com
Keywords|
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
--
13 matches
Mail list logo