January 01, 2023 [Issue 8545] defined opCast disables cast(void*)this in classes | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=8545 Richard Cattermole <alphaglosined@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |alphaglosined@gmail.com Resolution|INVALID |--- --- Comment #6 from Richard Cattermole <alphaglosined@gmail.com> --- I'm reopening this bug report for two reasons: 1. Hipreme ran into this when creating a class manually which had opCast defined. 2. With the current work replacing _d_newclass with a template, new will no longer work with a class that isn't ultra-specific with its opCast. In practice this will be a breaking change, so it's time to fix this bug to prevent code breakage. -- |
January 02, 2023 [Issue 8545] defined opCast disables cast(void*)this in classes | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=8545 Richard Cattermole <alphaglosined@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution|--- |INVALID --- Comment #7 from Richard Cattermole <alphaglosined@gmail.com> --- Closing again, because I did make a mistake. The new class hook won't need this, and destroy already works. So even if this doesn't make sense why it wasn't fixed, I'll put it back to original state. -- |
Copyright © 1999-2021 by the D Language Foundation