[Issue 3650] functions are considered pointers

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 12 11:18:49 PDT 2011


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


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
                 CC|                            |bugzilla at digitalmars.com
         Resolution|                            |INVALID


--- Comment #5 from Walter Bright <bugzilla at digitalmars.com> 2011-04-12 11:15:01 PDT ---
void function() foo;

declares foo as a function pointer.

is(T T2 : T2*)

matches a pointer, and sets T2 to whatever is pointed to.

Hence what is printed out is correct. Not a bug.

-- 
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