One of us is crazy: Me or {function here}.stringof

Bill Baxter wbaxter at gmail.com
Fri Nov 13 07:15:44 PST 2009


On Fri, Nov 13, 2009 at 12:05 AM, Nick Sabalausky <a at a.a> wrote:
> "Nick Sabalausky" <a at a.a> wrote in message
> news:hdj3dk$1r5k$1 at digitalmars.com...
>> AKA ".stringof strikes again", or ".attackof.stringof"...
>>
>
> Ok, *now* I see all the reports of this on bugzilla, now that I searched for
> just "stringof" and dug through the pile of results, instead of searching
> for both "stringof" and "function"...Real pain for metaprogramming...

At any rate I think a single stringof for a function is not sufficient.
You might want any of:
    foo
    foo(int, int)
    foo(int a, int b)
There should probably be some __traits functions for getting these
different things, if there aren't already.
--bb


More information about the Digitalmars-d-learn mailing list