http://d.puremagic.com/issues/show_bug.cgi?id=4251
Luther Tychonievich la...@virginia.edu changed:
What|Removed |Added
Summary|Hole in the type system:|Hole in the
http://d.puremagic.com/issues/show_bug.cgi?id=4251
--- Comment #18 from Steven Schveighoffer schvei...@yahoo.com 2011-11-18
07:10:20 PST ---
(In reply to comment #17)
(In reply to comment #16)
B x;
A* y=x; // bad!
Everything you describe is supposed to happen. A* y = x is the
http://d.puremagic.com/issues/show_bug.cgi?id=4251
Brad Roberts bra...@puremagic.com changed:
What|Removed |Added
Keywords|patch |
http://d.puremagic.com/issues/show_bug.cgi?id=4251
--- Comment #15 from yebblies yebbl...@gmail.com 2011-08-04 13:31:41 EST ---
(In reply to comment #14)
I've removed the patch keyword from this bug since the pull request was
withdrawn. I don't suppose you've had a chance to fix the issues
http://d.puremagic.com/issues/show_bug.cgi?id=4251
yebblies yebbl...@gmail.com changed:
What|Removed |Added
CC||bearophile_h...@eml.cc
http://d.puremagic.com/issues/show_bug.cgi?id=4251
Stewart Gordon s...@iname.com changed:
What|Removed |Added
CC||s...@iname.com
---
http://d.puremagic.com/issues/show_bug.cgi?id=4251
--- Comment #6 from yebblies yebbl...@gmail.com 2011-06-16 01:41:07 PDT ---
(In reply to comment #5)
I agree about the first five of these. But I'm not sure if this last one is
safe. I'll think about it when I've more time. In any case,
http://d.puremagic.com/issues/show_bug.cgi?id=4251
--- Comment #7 from Steven Schveighoffer schvei...@yahoo.com 2011-06-16
08:06:02 PDT ---
I think the cases are all sound.
In order for there to be a problem, both mutable and immutable data need to be
castable into const. If you cannot cast
http://d.puremagic.com/issues/show_bug.cgi?id=4251
--- Comment #8 from yebblies yebbl...@gmail.com 2011-06-16 08:14:06 PDT ---
(In reply to comment #7)
This is definitely one of those things that makes my brain hurt... It's like 4
dimensional geometry :)
I had to draw out tables and diagrams
http://d.puremagic.com/issues/show_bug.cgi?id=4251
--- Comment #9 from Stewart Gordon s...@iname.com 2011-06-16 12:12:23 PDT ---
(In reply to comment #5)
immutable(T*)** = const(T*)** allowed, same number of mutable indirections
As it turns out, this is unsafe, as the following code shows:
http://d.puremagic.com/issues/show_bug.cgi?id=4251
Andrei Alexandrescu and...@metalanguage.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=4251
--- Comment #11 from Stewart Gordon s...@iname.com 2011-06-16 13:18:31 PDT ---
(In reply to comment #10)
Yah, this has constantly puzzled starting C++ programmers - you can convert
char* to const(char*) but not char** to const(char*)*.
Do
http://d.puremagic.com/issues/show_bug.cgi?id=4251
--- Comment #12 from yebblies yebbl...@gmail.com 2011-06-16 20:18:02 PDT ---
(In reply to comment #9)
(In reply to comment #5)
immutable(T*)** = const(T*)** allowed, same number of mutable
indirections
As it turns out, this is unsafe,
http://d.puremagic.com/issues/show_bug.cgi?id=4251
yebblies yebbl...@gmail.com changed:
What|Removed |Added
CC||la...@virginia.edu
---
http://d.puremagic.com/issues/show_bug.cgi?id=4251
yebblies yebbl...@gmail.com changed:
What|Removed |Added
Keywords||accepts-invalid, patch
http://d.puremagic.com/issues/show_bug.cgi?id=4251
nfx...@gmail.com changed:
What|Removed |Added
CC||nfx...@gmail.com
http://d.puremagic.com/issues/show_bug.cgi?id=4251
Steven Schveighoffer schvei...@yahoo.com changed:
What|Removed |Added
CC|
17 matches
Mail list logo