Thread overview | ||||||
---|---|---|---|---|---|---|
|
May 06, 2014 [Issue 12711] Ternary operator turns a character into an integral | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=12711 bearophile_hugs@eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bearophile_hugs@eml.cc --- Comment #1 from bearophile_hugs@eml.cc --- (In reply to Andrej Mitrovic from comment #0) > This is very ugly. I'm not sure whether it's a DMD bug or a Phobos bug though. It's an ugly dmd bug: void main() { pragma(msg, typeof(true ? char('x') : '_')); pragma(msg, typeof(true ? wchar('x') : '_')); pragma(msg, typeof(true ? dchar('x') : '_')); } Output: char int uint But perhaps I already reported this issue, please search it in Bugzilla. -- |
May 06, 2014 [Issue 12711] Ternary operator turns a character into an integral | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=12711 --- Comment #2 from Andrej Mitrovic <andrej.mitrovich@gmail.com> --- Seems like a dupe or another case of https://issues.dlang.org/show_bug.cgi?id=11732 -- |
December 17, 2022 [Issue 12711] Ternary operator turns a character into an integral | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=12711 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P1 |P3 -- |
December 13 [Issue 12711] Ternary operator turns a character into an integral | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=12711 --- Comment #3 from dlangBugzillaToGithub <robert.schadek@posteo.de> --- THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18825 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB -- |
Copyright © 1999-2021 by the D Language Foundation