Bug 2867 – stringof is broken

Status
RESOLVED
Resolution
WONTFIX
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2009-04-21T02:43:00Z
Last change time
2016-12-22T14:51:12Z
Assigned to
nobody
Creator
davidl

Comments

Comment #0 by davidl — 2009-04-21T02:43:20Z
class D { int foo(int i){} } pragma(msg, D.foo.stringof); teststringof.d(6): Error: function teststringof.D.foo (int i) does not match parameter types () teststringof.d(6): Error: expected 1 function arguments, not 0 foo() What I love to see is that it prints "foo"
Comment #1 by hsteoh — 2015-08-24T04:52:57Z
Still happens on git HEAD. Verified on git HEAD (5b468ace36ac8eaa6de215b1e376aece9ccc1084), Linux/64-bit.
Comment #2 by andrei — 2016-10-14T01:14:41Z
FWIW this prints "& foo": class D { int foo(int i){ return 0; } } pragma(msg, (&D.foo).stringof); void main(){}
Comment #3 by andrei — 2016-12-22T14:51:12Z
I don't think this needs a fix.