CTFE Status 2
Stefan Koch via Digitalmars-d
digitalmars-d at puremagic.com
Fri Mar 17 07:47:26 PDT 2017
On Friday, 17 March 2017 at 12:55:22 UTC, Kagamin wrote:
> On Thursday, 16 March 2017 at 14:48:22 UTC, Stefan Koch wrote:
>> As soon as array-length assignment (and therefore expansion)
>> is working again;
>> You can start writing fast compile-time parsers.
>
> Though for AST one would need unions, like
> struct Node
> {
> int type;
> union
> {
> StringLiteral str;
> NumberLiteral num;
> ExpressionNode expr;
> }
> }
You might as well replace union with struct here.
More information about the Digitalmars-d
mailing list