CTFE Status

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Tue Dec 6 15:21:04 PST 2016


On Tuesday, 6 December 2016 at 23:16:16 UTC, Stefan Koch wrote:
> On Tuesday, 6 December 2016 at 22:44:34 UTC, Nordlöw wrote:
>> On Tuesday, 6 December 2016 at 22:21:59 UTC, Stefan Koch wrote:
>>> Go ahead.
>>> Many features should already be working correctly.
>>>
>>> The missing important ones are slices and concat.
>>
>> Ok, great.
>>
>> I was thinking about benchmarking parser generators such as 
>> Pegged.
>>
>> Is there another way of concatenating strings than with the 
>> builtin ~ operator?
>
> Yes there is.
> Create a char[] give it the length of string a + string b;
> copy string a into the char[]
> then copy string b into the resulting array.
> offsetting it by the length of string a.

But keep in mind function calls are unsupported right now.
Meaning you have to put everything in one function.
However function calls should be working some time soon.
I am still in the middle of restructuring how blocks or handled, 
because right now I will miscompile for-loops with continues in 
them.



More information about the Digitalmars-d mailing list