The X Macro using D

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Fri Jul 21 01:25:56 PDT 2017


On Friday, 21 July 2017 at 08:12:55 UTC, Jacob Carlborg wrote:
> On 2017-07-21 00:02, Walter Bright wrote:
>> On 7/20/2017 2:21 PM, Stefan Koch wrote:
>>> Please tell me this is not going to get into dmd :)
>>> templates are so much more expensive then macros.
>>> (Well, for now :) )
>>>
>>> Those templates can and should be replaced by CTFE.
>> 
>> If you like, present the CTFE solution. Should be fun!
>
> Here's my solution. It sill uses templates for the 
> implementation of "map":


that uses more compile-time then mine :)
and leaves bloat in the binary.


More information about the Digitalmars-d mailing list