https://issues.dlang.org/show_bug.cgi?id=5995
erict...@gmail.com changed:
What|Removed |Added
CC||erict...@gmail.com
--- Comment #13 from e
https://issues.dlang.org/show_bug.cgi?id=5995
Andrei Alexandrescu changed:
What|Removed |Added
Keywords||bootcamp
CC|
https://issues.dlang.org/show_bug.cgi?id=5995
Lucia Cojocaru changed:
What|Removed |Added
CC||lucia.mcojoc...@gmail.com
--- Comment #14 fr
https://issues.dlang.org/show_bug.cgi?id=5995
Lucia Cojocaru changed:
What|Removed |Added
Component|druntime|dmd
--
https://issues.dlang.org/show_bug.cgi?id=5995
Lucia Cojocaru changed:
What|Removed |Added
Assignee|nob...@puremagic.com|lucia.mcojoc...@gmail.com
--
https://issues.dlang.org/show_bug.cgi?id=5995
--- Comment #15 from Steven Schveighoffer ---
Lucia, I think nothing should implicitly cast to dchar. Not bool, int, or even
char or wchar. But something this drastic needs approval from Walter and
Andrei.
Of course, we definitely need a deprecation
https://issues.dlang.org/show_bug.cgi?id=5995
--- Comment #16 from Andrei Alexandrescu ---
This bug has a simple fix - throw a runtime exception (e.g. by onUnicodeError)
instead of assert(0). We shouldn't change language rules on account of this.
Thanks!
--
https://issues.dlang.org/show_bug.cgi?id=5995
--- Comment #17 from Steven Schveighoffer ---
There are two problems, one is that the OP's code compiles, the other is that
it segfaults. Arguably, fixing the first problem will fix the second. But just
fixing the second leaves other problems still in
https://issues.dlang.org/show_bug.cgi?id=5995
--- Comment #18 from Lucia Cojocaru ---
As Andrei suggested, here is the quick fix:
PR https://github.com/dlang/druntime/pull/1696
Language design changes should be discussed with Walter and Andrei in depth.
--
/commit/6dbbadbac4a0567ba49f0e616fccc8c597fec771
Merge pull request #1696 from somzzz/issue_5995
fix issue 5995 - string append negative integer causes segfault
--
https://issues.dlang.org/show_bug.cgi?id=5995
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|--
https://issues.dlang.org/show_bug.cgi?id=5995
--- Comment #20 from github-bugzi...@puremagic.com ---
Commits pushed to scope at https://github.com/dlang/druntime
https://github.com/dlang/druntime/commit/316e6d2607b4b22794ef75a331ad27d970717cda
fix issue 5995
https://github.com/dlang/druntime/com
https://issues.dlang.org/show_bug.cgi?id=5995
--- Comment #21 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/druntime
https://github.com/dlang/druntime/commit/316e6d2607b4b22794ef75a331ad27d970717cda
fix issue 5995
https://github.com/dlang/druntime/co
https://issues.dlang.org/show_bug.cgi?id=5995
--- Comment #22 from github-bugzi...@puremagic.com ---
Commits pushed to newCTFE at https://github.com/dlang/druntime
https://github.com/dlang/druntime/commit/316e6d2607b4b22794ef75a331ad27d970717cda
fix issue 5995
https://github.com/dlang/druntime/c
https://issues.dlang.org/show_bug.cgi?id=5995
Vladimir Panteleev changed:
What|Removed |Added
CC||skoczn...@gmail.com
--- Comment #23 from
http://d.puremagic.com/issues/show_bug.cgi?id=5995
kenn...@gmail.com changed:
What|Removed |Added
CC||kenn...@gmail.com
--- Comment #1 fr
http://d.puremagic.com/issues/show_bug.cgi?id=5995
Vladimir changed:
What|Removed |Added
CC||thecybersha...@gmail.com
--- Comment #2 fro
http://d.puremagic.com/issues/show_bug.cgi?id=5995
Steven Schveighoffer changed:
What|Removed |Added
CC||schvei...@yahoo.com
--- Comment
http://d.puremagic.com/issues/show_bug.cgi?id=5995
Jonathan M Davis changed:
What|Removed |Added
CC||jmdavisp...@gmx.com
--- Comment #4
http://d.puremagic.com/issues/show_bug.cgi?id=5995
timon.g...@gmx.ch changed:
What|Removed |Added
CC||timon.g...@gmx.ch
--- Comment #5 fr
http://d.puremagic.com/issues/show_bug.cgi?id=5995
--- Comment #6 from timon.g...@gmx.ch 2011-05-16 11:07:36 PDT ---
(In reply to comment #4)
> Implicitly converting to the same-size _unsigned_ integral type might be fine,
> but converting to a signed type would be a narrowing conversion. I'd st
http://d.puremagic.com/issues/show_bug.cgi?id=5995
--- Comment #7 from Jonathan M Davis 2011-05-16 11:19:03
PDT ---
dchar is unsigned. int is signed. They don't cover the same range of values.
Converting from one to the other in either direction is a narrowing conversion.
I expect that the onl
http://d.puremagic.com/issues/show_bug.cgi?id=5995
--- Comment #8 from Steven Schveighoffer 2011-05-16
11:26:52 PDT ---
(In reply to comment #6)
> void main(){
> uint i=-1; //fine
> dchar c=-1; //compile time error
> }
Just tried this and it indeed produces an error:
Error: cannot i
https://issues.dlang.org/show_bug.cgi?id=5995
briancsch...@gmail.com changed:
What|Removed |Added
CC||briancsch...@gmail.com
--- Comment #9
https://issues.dlang.org/show_bug.cgi?id=5995
hst...@quickfur.ath.cx changed:
What|Removed |Added
CC||hst...@quickfur.ath.cx
--- Comment #1
https://issues.dlang.org/show_bug.cgi?id=5995
--- Comment #11 from hst...@quickfur.ath.cx ---
Should appending invalid codepoints append the Unicode replacement character
instead?
--
https://issues.dlang.org/show_bug.cgi?id=5995
--- Comment #12 from Steven Schveighoffer ---
(In reply to hsteoh from comment #11)
> Should appending invalid codepoints append the Unicode replacement character
> instead?
I think implicit casting of int to dchar should be invalid altogether. See m
27 matches
Mail list logo