Get body of a function as string

Jacob Carlborg doob at me.com
Sat Jun 29 03:21:30 PDT 2013


On 2013-06-28 14:46, John Colvin wrote:
> Is there any way of getting the body of a function as a string?
> (Obviously only when the source code is available to the compiler)

I remember someone someone modified DMD and added a .codeof property or 
similar. It was fairly easy.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list