Issue with template function
ketmar via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Feb 6 09:40:31 PST 2015
On Fri, 06 Feb 2015 17:09:28 +0000, Charles wrote:
> readString(toBytes!string("test"),0,4).writeln;
if you'll take a look into druntime sources, you'll find that string is
just an alias to `immutable(char)[]`. so you actually doing thing:
readString(toBytes!(immutable(char)[])("test"),0,4).writeln;
i bet that this is not what you meant. ;-)
-------------- 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/20150206/5c52123e/attachment.sig>
More information about the Digitalmars-d-learn
mailing list