Random string samples & unicode
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Sat Sep 11 10:01:33 PDT 2010
On 9/11/10 9:48 CDT, Andrej Mitrovic wrote:
> I think this might be a compiler bug:
>
>
> import std.conv : to;
>
> void main()
> {
> string mystring;
> dchar mydchar;
>
> // ok, appending dchar to string
> mystring ~= mydchar;
>
> // error: incompatible types for
> // ((cast(uint)mydchar) ~ (cast(uint)mydchar)): 'uint' and 'uint'
> mystring ~= mydchar ~ mydchar;
> }
You can't concatenate two integrals.
Andrei
More information about the Digitalmars-d
mailing list