digitalmars.D.bugs - [Issue 8109] New: typeof(function) within functions
- d-bugmail puremagic.com (26/26) May 16 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8109
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 --- Comment #0 from Manu <turkeyman 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: -------
May 16 2012