How about appender.put() with var args?
ketmar via Digitalmars-d
digitalmars-d at puremagic.com
Thu Apr 16 16:38:43 PDT 2015
On Thu, 16 Apr 2015 21:58:43 +0000, Messenger wrote:
> Appender!string app;
>
> app ~= "hello"
> ~= " "
> ~= "kitty";
>
> --> Error: Cannot modify '" "'
>
> Is the order of evaluation not such that this becomes app ~= ("hello" ~=
> (" " ~= "kitty"))?
yes, assign is right associative.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150416/f232ba22/attachment.sig>
More information about the Digitalmars-d
mailing list