Appender and CTFE

Jacob Carlborg doob at me.com
Thu Mar 3 07:28:00 PST 2011


On 2011-03-03 14:12, bearophile wrote:
> Trass3r:
>
>> I think something should be done about this. Couldn't Appender be implemented without using a pointer to a struct?
>
> There's no need for this, there is __ctfe (that thanks to fixing bug 4177 is usable in pure functions too), that allows to create two paths inside the Appender, one for CT and one for runtime.
>
> Bye,
> bearophile

So much for the "having the same implementation for the compile time 
function and the runtime function".

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list