Thread overview
[Issue 12945] Deprecation for legacy static opCall feature in initializing
Jun 19, 2014
Jonathan M Davis
Jun 19, 2014
Kenji Hara
Aug 25, 2022
RazvanN
June 19, 2014
https://issues.dlang.org/show_bug.cgi?id=12945

Jonathan M Davis <jmdavisProg@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisProg@gmx.com

--- Comment #1 from Jonathan M Davis <jmdavisProg@gmx.com> ---
static opCall without any parameters should continue work though, since you can't declare a default constructor.

--
June 19, 2014
https://issues.dlang.org/show_bug.cgi?id=12945

--- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> ---
(In reply to Jonathan M Davis from comment #1)
> static opCall without any parameters should continue work though, since you can't declare a default constructor.

This proposal does not change it.

--
August 25, 2022
https://issues.dlang.org/show_bug.cgi?id=12945

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305@gmail.com
         Resolution|---                         |WONTFIX

--- Comment #3 from RazvanN <razvan.nitu1305@gmail.com> ---
I don't see why this shouldn't work in the absence of a constructor in S. Currently, constructor is preferred if both constructor and opCall are defined.

Closing this as WONTFIX.

--