Simple implementation of __FUNCTION
Philippe Sigaud
philippe.sigaud at gmail.com
Fri Nov 2 15:13:45 PDT 2012
On Fri, Nov 2, 2012 at 10:59 PM, Jonathan M Davis <jmdavisProg at gmx.com> wrote:
>> Is there any downside to this?
>
> Identifiers starting with __ are reserved for the compiler/language. It should
> be __FUNCTION__ if it's built-in, but if it's in the library, I see no reason
> to name it in a way that conflicts with Phobos' naming conventions like this.
Er, yes, but __FUNCTION comes the OP. My question was more about using
a function instead of a template.
And Timon makes a good point, using a token string q{ } should make
this more mixin-able.
More information about the Digitalmars-d
mailing list