www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18323] New: deprecate `void fun(this a)` (instead:


          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