The state of string interpolation

Paul Backus snarwin at gmail.com
Thu Dec 6 20:49:08 UTC 2018


On Thursday, 6 December 2018 at 20:45:57 UTC, Meta wrote:
> On Thursday, 6 December 2018 at 20:00:02 UTC, H. S. Teoh wrote:
>> Essentially, what you want to be able to do is essentially for 
>> a template to be able to reference symbols in the caller's 
>> scope, rather than in the template's scope.
>
> Am I missing something? D has this already in the form of mixin 
> templates.

Mixin templates can *add* symbols to the caller's scope, but they 
can't refer to *existing* symbols unless they're passed in as 
template parameters.


More information about the Digitalmars-d mailing list