Kill implicit joining of adjacent strings
"Jérôme M. Berger"
jeberger at free.fr
Sun Nov 14 00:50:33 PST 2010
Stewart Gordon wrote:
> On 12/11/2010 09:53, Andrei Alexandrescu wrote:
> <snip>
>> Well put me on board then. Walter, please don't forget to tweak the
>> associativity rules: var ~ " literal " ~ " literal " concatenates
>> literals first.
>
> You mean make ~ right-associative? I think this'll break more code than
> it fixes.
>
No because making ~ right-associative would cause the reverse
problem: ctc ~ ctc ~ var would not work. What is needed is for ctc ~
ctc ~ var ~ ctc ~ ctc to be processed as ((ctc ~ ctc) ~ var) ~ (ctc
~ ctc).
> ctc = compile-time constant
>
Jerome
--
mailto:jeberger at free.fr
http://jeberger.free.fr
Jabber: jeberger at jabber.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20101114/c5cbbd43/attachment.pgp>
More information about the Digitalmars-d
mailing list