[Issue 11481] New: Clearly note all explicit casts are forwarded to `alias this` if there is no `opCast`
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Nov 9 05:39:39 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11481
Summary: Clearly note all explicit casts are forwarded to
`alias this` if there is no `opCast`
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: spec
Severity: major
Priority: P2
Component: websites
AssignedTo: nobody at puremagic.com
ReportedBy: verylonglogin.reg at gmail.com
--- Comment #0 from Denis Shelomovskij <verylonglogin.reg at gmail.com> 2013-11-09 16:39:36 MSK ---
People tend to think explicit cast behaves as no-op if there is an implicit
one. Documentation must clearly note it's wrong and `opCast` is tried to be
called.
Also a list of operations rewritten as explicit cast like `if(someStruct)` must
be provided as people tend to forget invisible explicit casts exist.
Appendix:
* Filed invalid bugs because of this: Issue 3537, Issue 6777, Issue 7985, Issue
9151.
* Lockup mechanics explanation by Kenji Hara: Comment 2 of Issue 11161.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list