What do you thing about this string interpolation idea

Daniel Kozak kozzi11 at gmail.com
Mon Dec 10 19:04:21 UTC 2018


On Mon, Dec 10, 2018 at 7:40 PM Jonathan Marler via Digitalmars-d <
digitalmars-d at puremagic.com> wrote:

>
>
> It's not just global scope, it's any outer scope. Examples:
>
> class
> {
>      mixin(enableInterpolate); // BAD
>      void foo()
>      {
>          interpolate!(...)
>      }
> }
>
> void foo2()
> {
>      mixin(enableInterpolate); // BAD
>      void inner_foo()
>      {
>          interpolate!(...)
>      }
> }
>
> You can fix this too
 https://gist.github.com/run-dlang/b797fd9e1d4993aeafcdb3d0523ef465
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20181210/a83fd74d/attachment.html>


More information about the Digitalmars-d mailing list