On Monday, 9 April 2018 at 08:27:50 UTC, Per Nordlöw wrote:
Is it possible to get the source expression sent to a lazy function?

So that I can implement something like

show(Arg)(lazy Arg arg)
    writeln(arg.sourceof, arg);

used as


will print


No (afaik), what you need is an internal compiler function, "toChars" IIRC, that's available for each node.

Reply via email to