[Issue 5747] cannot cast away shared if opCast defined

2019-02-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5747 Basile-z changed: What|Removed |Added Status|REOPENED|RESOLVED CC|

[Issue 5747] cannot cast away shared if opCast defined

2020-03-20 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5747 Basile-z changed: What|Removed |Added CC|b2.t...@gmx.com | --

[Issue 5747] cannot cast away shared if opCast defined

2011-09-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5747 Jonathan M Davis changed: What|Removed |Added CC||jmdavisp...@gmx.com --- Comment #1

[Issue 5747] cannot cast away shared if opCast defined

2011-10-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5747 Nick Treleaven changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Issue 5747] cannot cast away shared if opCast defined

2011-10-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5747 Jonathan M Davis changed: What|Removed |Added Status|RESOLVED|REOPENED Platform|Other

[Issue 5747] cannot cast away shared if opCast defined

2013-11-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5747 monarchdo...@gmail.com changed: What|Removed |Added CC||monarchdo...@gmail.com --- Com

[Issue 5747] cannot cast away shared if opCast defined

2013-12-10 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=5747 --- Comment #5 from Kenji Hara 2013-12-10 17:34:52 PST --- I'm still not sure about this bug, because special handling for the _qualifier-only-different cast_ could cause opposite problem in generic code. template X(T, U) { ... T foo() {

[Issue 5747] cannot cast away shared if opCast defined

2013-12-11 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=5747 Max Samukha changed: What|Removed |Added CC||samu...@voliacable.com --- Comment #6 f

[Issue 5747] cannot cast away shared if opCast defined

2013-12-11 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=5747 --- Comment #7 from monarchdo...@gmail.com 2013-12-11 12:38:23 PST --- (In reply to comment #6) > (In reply to comment #4) > > > { > > return this; //This fails > > return cast(T) this; //This overflows > > } > > That'

[Issue 5747] cannot cast away shared if opCast defined

2013-12-11 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=5747 --- Comment #8 from Jonathan M Davis 2013-12-11 22:19:54 PST --- Like monarchdodra, I question the wisdom in overloading the cast operator for type qualifiers. Maybe it's useful and needed, but 99.99% of the time, having to have overloads to

[Issue 5747] cannot cast away shared if opCast defined

2013-12-12 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=5747 --- Comment #9 from Max Samukha 2013-12-12 14:08:45 PST --- (In reply to comment #7) > (In reply to comment #6) > > (In reply to comment #4) > > > > > { > > > return this; //This fails > > > return cast(T) this; //This ov

[Issue 5747] cannot cast away shared if opCast defined

2013-12-12 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=5747 --- Comment #10 from monarchdo...@gmail.com 2013-12-12 23:35:57 PST --- (In reply to comment #9) > (In reply to comment #7) > > > > Your example snippet still overflows for me for the initial use case: > > It doesn't with dmd 2.064. Are you