> From: Andy Ross
> Perl and Python get away without having character constants at all.
> They do string indexing by making substrings at runtime. But
> substrings are garbage-collected, which makes them a little expensive.
> I don't want to thrash the heap just to iterate through a single
> string (the lack of the ability to do this really annoys me in perl).
> So basically, I can't just emulate C, perl or python here, I need to
> "invent" a new syntax.
You could perhaps extend the w3 named entity syntax which uses & as left
; as right. So that &A; would equal A
But maybe the ; would be a parsing headache...
Flightgear-devel mailing list