How can I dump an expression into log and execute it

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Sun Jul 13 18:32:38 PDT 2014


On 07/14/2014 03:25 AM, fra wrote:
> On Sunday, 13 July 2014 at 20:56:31 UTC, Ary Borenszweig wrote:
>> On 7/13/14, 8:13 AM, fra wrote:
>>> Macros are an aberration that allow code writers to create code
>>> that is plan impossible to understand and mantain. Mixins can
>>> give you pretty much the same amoun of functionality while
>>> imposing sane limits to what can be done.
>>
>> Do you really find my sample code hard to understand? Macros looks
>> just like regular function definitions, only with placeholders.
>
> #define sizeof(x) rand()
>
> :o)

(This is not about C macros.)


More information about the Digitalmars-d mailing list