[Issue 5113] stray e2ir: in casting error message

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 9 12:06:39 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=5113



--- Comment #5 from Maxim Fomin <maxim at maxim-fomin.ru> 2013-11-09 12:06:38 PST ---
The code 

void main()
{
    char c = cast(int)" ";
}

is likely to be flawed because what it may produce taking into account D
language is conversion from dynamic char array (it may be first/last 4 bytes of
address/length depending on what cast from dynamic array mean) to 4 byte
integer and then truncate to 1 byte char implicitly.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list