Scriptlike v0.9.4 - Perl-like interpolated strings, full examples and more.
Sebastiaan Koppe via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Tue Sep 22 21:53:44 PDT 2015
On Wednesday, 23 September 2015 at 01:45:03 UTC, Adam D. Ruppe
wrote:
> On Wednesday, 23 September 2015 at 01:24:54 UTC, Sebastiaan
> Koppe wrote:
>> What about:
>>
>> void echo(T)()
>> {
>> writeln(mixin(interp!T));
>
> Won't work because it won't be able to see the local variables
> you want to interpolate.
facepalm... ofcourse...
Well, you could still get rid of the writeln.
More information about the Digitalmars-d-announce
mailing list