digitalmars.D.bugs - [Issue 18323] New: deprecate `void fun(this a)` (instead:
- d-bugmail puremagic.com (21/21) Jan 28 2018 https://issues.dlang.org/show_bug.cgi?id=18323
https://issues.dlang.org/show_bug.cgi?id=18323 Issue ID: 18323 Summary: deprecate `void fun(this a)` (instead: typeof(this)) ; `var.init` (instead: typeof(var).init) Product: D Version: D2 Hardware: x86 OS: Mac OS X Status: NEW Severity: minor Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: timothee.cour2 gmail.com we should deprecate `void fun(this a)` (instead: void fun(typeof(this)a)) ; likewise, we should deprecate `var.init` (instead: typeof(var).init) more controversial: we may also want to deprecate `instance.static_methor();` it's confusing and lax, and leads to behavior that confuses some users, see [The daily D riddle]: https://www.mail-archive.com/digitalmars-d puremagic.com/msg230090.html --
Jan 28 2018