Get body of a function as string

John Colvin john.loughran.colvin at gmail.com
Fri Jun 28 13:50:54 PDT 2013


On Friday, 28 June 2013 at 13:55:54 UTC, Namespace wrote:
> And why don't you call the function from your clone function?

Because the body of the new function needs to see the parameters 
as known at compile-time.

> Maybe this could help you: http://dpaste.1azy.net/fork/597affd2
> I used it to generate my own rvalue functions because of the 
> lack of rvalue references.

Thanks, that was helpful for a few hints, but it doesn't fix this 
particular problem.


More information about the Digitalmars-d-learn mailing list