Thread overview
[Issue 14488] Deprecate Imaginary and complex types
Apr 24, 2015
Iain Buclaw
Aug 13, 2017
Iain Buclaw
Aug 12, 2019
Mathias LANG
Aug 12, 2019
Seb
Jan 27, 2021
Iain Buclaw
Jan 09, 2022
Walter Bright
Feb 15, 2022
RazvanN
April 24, 2015
https://issues.dlang.org/show_bug.cgi?id=14488

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw@gdcproject.org

--- Comment #1 from Iain Buclaw <ibuclaw@gdcproject.org> ---
PR https://github.com/D-Programming-Language/dmd/pull/4611

--
August 13, 2017
https://issues.dlang.org/show_bug.cgi?id=14488

--- Comment #2 from Iain Buclaw <ibuclaw@gdcproject.org> ---
Two years gone, now its deprecation time.

https://github.com/dlang/dmd/pull/7081

--
August 12, 2019
https://issues.dlang.org/show_bug.cgi?id=14488

Mathias LANG <pro.mathias.lang@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |pro.mathias.lang@gmail.com
         Resolution|---                         |FIXED

--- Comment #3 from Mathias LANG <pro.mathias.lang@gmail.com> ---
Well it has been deprecated, now it needs to be removed. But we can close this issue.

--
August 12, 2019
https://issues.dlang.org/show_bug.cgi?id=14488

Seb <greeenify@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |greeenify@gmail.com
         Resolution|FIXED                       |---

--- Comment #4 from Seb <greeenify@gmail.com> ---
It's not deprecated yet: https://github.com/dlang/dmd/issues/7640

--
January 27, 2021
https://issues.dlang.org/show_bug.cgi?id=14488

--- Comment #5 from Iain Buclaw <ibuclaw@gdcproject.org> ---
Initial steps to get the ball rolling on this:

1. Remove all complex and imaginary unit-tests from druntime and phobos.

2. Remove/Replace the druntime compiler-library helpers.
 - cdouble *_memset128(cdouble *p, cdouble value, size_t count)
 - creal *_memset160(creal *p, creal value, size_t count)

3. Remove built-in RTTI support in the compiler and run-time library.

4. Add deprecations for internal complex/imaginary helpers (core.internal.convert, core.internal.array.comparison, etc...)

5. Remove all support that was deprecated in (4).

6. Turn on -transition=complex in the compiler by default, so the deprecation warning is the default, deprecate the command-line switch.

7. Add -preview=complex (https://github.com/dlang/dmd/pull/12069). Though this
could be done earlier.

8. Add new run-time support code for the "new" complex types for C ABI compatibility, this would have to be conditionally compiled in, likely using mixins to avoid triggering parser errors.

9. Make -preview=complex the default, deprecate the command-line switch.

10. Remove residual scaffolding around the deprecation phase of complex/imaginary numbers.

... or ...

Jump straight to (6) and remove everything from druntime/phobos immediately.

--
January 09, 2022
https://issues.dlang.org/show_bug.cgi?id=14488

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #6 from Walter Bright <bugzilla@digitalmars.com> ---
It's deprecated now, I don't know when that was added.

But let's move on with making it available only with -revert=complex

--
February 15, 2022
https://issues.dlang.org/show_bug.cgi?id=14488

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
                 CC|                            |razvan.nitu1305@gmail.com
         Resolution|---                         |FIXED

--- Comment #7 from RazvanN <razvan.nitu1305@gmail.com> ---
Since complex types have been deprecated, this issue has been "fixed".

--