System programming in D (Was: The God Language)
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Fri Dec 30 12:51:37 PST 2011
On 12/30/11 12:10 PM, Walter Bright wrote:
> On 12/30/2011 4:05 AM, Timon Gehr wrote:
>> It certainly does. That is how all my code generation looks like. The
>> fact that
>> I am using string mixins to solve some problems shows that those are not
>> 'problems in D string mixins'.
>
> I your solution to parameterized strings is very nice. Can you write a
> brief article about it? This should be more widely known.
The idea is good, but nonhygienic: the macro's expansion picks up
symbols from the expansion context.
Timon, to move from good to great, you may want to add parameters to the
expansion process such that you replace the argument values during
expansion.
Andrei
More information about the Digitalmars-d
mailing list