[Issue 4251] Hole in the const system: immutable values can be overwritten (const(T) is appendable to const(T)[])

2011-11-18 Thread d-bugmail
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

[Issue 4251] Hole in the const system: immutable values can be overwritten (const(T) is appendable to const(T)[])

2011-11-18 Thread d-bugmail
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

[Issue 4251] Hole in the const system: immutable values can be overwritten (const(T) is appendable to const(T)[])

2011-08-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4251 Brad Roberts bra...@puremagic.com changed: What|Removed |Added Keywords|patch |

[Issue 4251] Hole in the const system: immutable values can be overwritten (const(T) is appendable to const(T)[])

2011-08-03 Thread d-bugmail
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

[Issue 4251] Hole in the const system: immutable values can be overwritten (const(T) is appendable to const(T)[])

2011-06-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4251 yebblies yebbl...@gmail.com changed: What|Removed |Added CC||bearophile_h...@eml.cc

[Issue 4251] Hole in the const system: immutable values can be overwritten (const(T) is appendable to const(T)[])

2011-06-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4251 Stewart Gordon s...@iname.com changed: What|Removed |Added CC||s...@iname.com ---

[Issue 4251] Hole in the const system: immutable values can be overwritten (const(T) is appendable to const(T)[])

2011-06-16 Thread d-bugmail
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,

[Issue 4251] Hole in the const system: immutable values can be overwritten (const(T) is appendable to const(T)[])

2011-06-16 Thread d-bugmail
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

[Issue 4251] Hole in the const system: immutable values can be overwritten (const(T) is appendable to const(T)[])

2011-06-16 Thread d-bugmail
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

[Issue 4251] Hole in the const system: immutable values can be overwritten (const(T) is appendable to const(T)[])

2011-06-16 Thread d-bugmail
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:

[Issue 4251] Hole in the const system: immutable values can be overwritten (const(T) is appendable to const(T)[])

2011-06-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4251 Andrei Alexandrescu and...@metalanguage.com changed: What|Removed |Added CC|

[Issue 4251] Hole in the const system: immutable values can be overwritten (const(T) is appendable to const(T)[])

2011-06-16 Thread d-bugmail
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

[Issue 4251] Hole in the const system: immutable values can be overwritten (const(T) is appendable to const(T)[])

2011-06-16 Thread d-bugmail
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,

[Issue 4251] Hole in the const system: immutable values can be overwritten (const(T) is appendable to const(T)[])

2011-06-15 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4251 yebblies yebbl...@gmail.com changed: What|Removed |Added CC||la...@virginia.edu ---

[Issue 4251] Hole in the const system: immutable values can be overwritten (const(T) is appendable to const(T)[])

2011-06-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4251 yebblies yebbl...@gmail.com changed: What|Removed |Added Keywords||accepts-invalid, patch

[Issue 4251] Hole in the const system: immutable values can be overwritten (const(T) is appendable to const(T)[])

2010-07-13 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4251 nfx...@gmail.com changed: What|Removed |Added CC||nfx...@gmail.com

[Issue 4251] Hole in the const system: immutable values can be overwritten (const(T) is appendable to const(T)[])

2010-07-13 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4251 Steven Schveighoffer schvei...@yahoo.com changed: What|Removed |Added CC|