www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8109] New: typeof(function) within functions

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

           Summary: typeof(function) within functions
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: turkeyman gmail.com



There are some special typeof() implementations, typeof(this), typeof(super),
etc, which may be used within the scope of a class to query these important
details.

I'm frequently finding myself needing something like typeof(function), which
would be valid within the scope of any function/method and produce its type.
I'm frequently finding myself needing to use mixins within a function which
need to know information about the functions arguments so that it can generate
code that references them.

For instance, very useful when creating pass-through/proxy functions, but I
have some other uses too.

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