www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9624] New: fullyQualifiedName fails for functions

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9624

           Summary: fullyQualifiedName fails for functions
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: m.strashun gmail.com



---
import std.traits;

void func(int) { }

void main()
{
    pragma(msg, fullyQualifiedName!func);
}
---
/opt/compilers/dmd2/include/std/traits.d(303): Error: function c487.func (int
_param_0) is not callable using argument types ()
/opt/compilers/dmd2/include/std/traits.d(303): Error: expected 1 function
arguments, not 0
/opt/compilers/dmd2/include/std/traits.d(257): Error: template instance
std.traits.fullyQualifiedNameImplForSymbols!(func) error instantiating
/home/c229/c487.d(7): instantiated from here: fullyQualifiedName!(func)
/home/c229/c487.d(7): Error: template instance
std.traits.fullyQualifiedName!(func) error instantiating
/home/c229/c487.d(7): while evaluating pragma(msg, fullyQualifiedName!(func))
---


Fix is trivial and ready to merge:
https://github.com/D-Programming-Language/phobos/pull/1182

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 01 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9624


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich gmail.com
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 08 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9624




15:38:22 PST ---
https://github.com/D-Programming-Language/phobos/commit/38aebebeba96e7312d3ce9611fe3ed2ed0283fa5

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