[Issue 2270] cast produces invalid arrays at runtime

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2270 Iain Buclaw changed: What|Removed |Added Priority|P2 |P4 --

[Issue 2270] cast produces invalid arrays at runtime

2019-09-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2270 anonymous4 changed: What|Removed |Added Severity|normal |enhancement --- Comment #17 from anonymous4 ---

[Issue 2270] cast produces invalid arrays at runtime

2019-09-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2270 Steven Schveighoffer changed: What|Removed |Added Version|D1 (retired)|D2 Severity|enhancement

[Issue 2270] cast produces invalid arrays at runtime

2019-09-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2270 Steven Schveighoffer changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|WORKSFORME

[Issue 2270] cast produces invalid arrays at runtime

2019-09-09 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2270 RazvanN changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 2270] cast produces invalid arrays at runtime

2011-07-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2270 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc --- Com

[Issue 2270] cast produces invalid arrays at runtime

2011-07-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2270 --- Comment #12 from Stewart Gordon 2011-07-11 14:41:54 PDT --- (In reply to comment #8) > IMO, cast should be reserved for specifically "I know what I'm > doing" stuff. dynamic cast (casting from a base to derived class) > should really be h

[Issue 2270] cast produces invalid arrays at runtime

2011-07-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2270 --- Comment #11 from Steven Schveighoffer 2011-07-11 10:20:10 PDT --- (In reply to comment #10) > Actually, I'm looking at std.conv.to in that pull request and see a > significant > bug, because cast is so dangerous! (will file in a minute)

[Issue 2270] cast produces invalid arrays at runtime

2011-07-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2270 --- Comment #10 from Steven Schveighoffer 2011-07-11 09:08:48 PDT --- (In reply to comment #9) > On a semi-related but not all that related note Interesting :) > I would point out to Steven > that Kenji has made pull requests related to std.

[Issue 2270] cast produces invalid arrays at runtime

2011-07-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2270 Jonathan M Davis changed: What|Removed |Added CC||jmdavisp...@gmx.com --- Comment #9

[Issue 2270] cast produces invalid arrays at runtime

2011-07-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2270 Steven Schveighoffer changed: What|Removed |Added Keywords|wrong-code | CC|

[Issue 2270] cast produces invalid arrays at runtime

2011-07-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2270 --- Comment #7 from yebblies 2011-07-12 00:38:32 EST --- (In reply to comment #6) > (In reply to comment #5) > > I do understand, but nothing you've said changes the fact that the behavior > > is > > completely intentional. > > What is your

[Issue 2270] cast produces invalid arrays at runtime

2011-07-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2270 --- Comment #6 from Stewart Gordon 2011-07-11 06:45:20 PDT --- (In reply to comment #5) > I do understand, but nothing you've said changes the fact that the behavior is > completely intentional. What is your source for this "fact"? > Cast is

[Issue 2270] cast produces invalid arrays at runtime

2011-07-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2270 --- Comment #5 from yebblies 2011-07-11 23:36:00 EST --- I do understand, but nothing you've said changes the fact that the behavior is completely intentional. Cast is, as always, a blunt instrument that bypasses the type system. Another exam

[Issue 2270] cast produces invalid arrays at runtime

2011-07-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2270 --- Comment #4 from Stewart Gordon 2011-07-11 04:28:28 PDT --- > On the other hand, I can't see anybody wanting what actually happens when you > try casting an object array to an interface array. And it's an easy mistake > to > make, either >

[Issue 2270] cast produces invalid arrays at runtime

2011-07-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2270 --- Comment #3 from Stewart Gordon 2011-07-11 04:21:01 PDT --- I disagree. The primary purpose of casting is simply to force an expression to a specified type. This cast may or may not be legal. For example, you can't cast between different

[Issue 2270] cast produces invalid arrays at runtime

2011-07-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2270 yebblies changed: What|Removed |Added CC||yebbl...@gmail.com --- Comment #2 from yebb

[Issue 2270] cast produces invalid arrays at runtime

2009-01-11 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2270 s...@iname.com changed: What|Removed |Added CC||s...@iname.com Keywords|