[Issue 1373] typeof(func).stringof fails when func has parameters.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Oct 23 08:49:17 PDT 2007


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





------- Comment #3 from clugdbug at yahoo.com.au  2007-10-23 10:49 -------
(In reply to comment #2)
> Please don't blindly quote the entire message when replying.  It's bad enough
> on any newsgroup, and when it clutters up Bugzilla, it's even worse.
> 
> This issue is puzzling me.  Surely typeof(func0) should be double, since as an
> expression, func0 is equivalent to func0().  And typeof(func2) probably
> shouldn't compile.

Function types _are_ wierd. And not well documented.

What is func2 ? It's a symbol of "function type". The only thing you do with it
it takes its address. Since in the spec, it's allowable in  & UnaryExpression,
it must be an expression, but I can't see it listed there.

Definitely related to issue #1341.


-- 



More information about the Digitalmars-d-bugs mailing list