[Issue 3464] is( void function() == function) is false

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 2 00:00:08 PST 2009


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


Lars T. Kyllingstad <bugzilla at kyllingen.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at kyllingen.net


--- Comment #1 from Lars T. Kyllingstad <bugzilla at kyllingen.net> 2009-11-02 00:00:05 PST ---
This is apparently intentional. I recently brought up the same issue on the NG:

http://www.digitalmars.com/d/archives/digitalmars/D/The_bizarre_world_of_typeof_99461.html#N99486

Quoting Don:
"real function()" is a *function pointer*, but is(xxx == function) tests to see
if xxx is a *function*, not a *function pointer*.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list