CTFE Status

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


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.



More information about the Digitalmars-d mailing list