DIP 50 - AST macros

Walter Bright newshound2 at digitalmars.com
Wed Nov 13 00:38:01 PST 2013


On 11/13/2013 12:17 AM, Jacob Carlborg wrote:
> On 2013-11-13 00:26, Walter Bright wrote:
>
>> It is limiting, but I don't know about extremely limiting. Eric
>> Anderton's regex engine didn't need them. And, if you really do need
>> them, you can always define the templates as regular names:
>>
>>     lessThan(a,b)
>>     equals(a,b)
>>
>> etc. Not the greatest, but not unworkable.
>
> I don't know what's so special about the regex engine. It takes a regex as a
> string and matches that against another string. Seems to be just like any other
> regular expression library I've used.

What's special about it was its use of expression templates. It made for a nice 
demo of how to do such.



More information about the Digitalmars-d mailing list