string, char[], overloaded functions.

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Oct 31 20:28:26 PDT 2014


On Sat, 01 Nov 2014 00:05:19 +0000
"Adam D. Ruppe via Digitalmars-d-learn"
<digitalmars-d-learn at puremagic.com> wrote:

> BTW one could argue that char[] ~ operator should yield something 
> that's implicitly convertable, since it allocates a new memory 
> block anyway, but that's not how it works right now.
it's not necessarily allocates. but `(buf~"hoo").idup` does, so it can
be used. ;-)
-------------- 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-learn/attachments/20141101/a26fcd79/attachment.sig>


More information about the Digitalmars-d-learn mailing list