std.d.lexer: pre-voting review / discussion

dennis luehring dl.soluz at gmx.net
Thu Sep 12 01:38:37 PDT 2013


just an idea regarding your string[TokenType.max + 1] in

immutable(string[TokenType.max + 1]) tokenValues = [..]

it seems that you try to reduce the memory usage

wouldn't it be a nice idea to generate a combined imutable string at 
compiletime like this one

"...pragmaexportpackageprivate..."

and generated string slice accesses?

imuteable string big_one = generated_from(toke_list);
imutable string export_token = big_one[10..6];




More information about the Digitalmars-d mailing list