[Issue 8109] New: typeof(function) within functions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed May 16 01:21:13 PDT 2012
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 at puremagic.com
ReportedBy: turkeyman at gmail.com
--- Comment #0 from Manu <turkeyman at gmail.com> 2012-05-16 01:22:45 PDT ---
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: -------
More information about the Digitalmars-d-bugs
mailing list