Thread overview
[Issue 18445] [DIP25] Unreproducible/wrong "return as a parameter attribute" inference
Feb 15, 2018
Carsten Blüggel
[Issue 18445] [DIP25][DIP1000] Wrong "return as a parameter attribute" inference
Mar 15, 2018
Carsten Blüggel
Mar 19, 2018
Carsten Blüggel
Mar 19, 2018
Carsten Blüggel
February 15, 2018
https://issues.dlang.org/show_bug.cgi?id=18445

Carsten Blüggel <chilli@posteo.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |chilli@posteo.net

--
March 15, 2018
https://issues.dlang.org/show_bug.cgi?id=18445

Carsten Blüggel <chilli@posteo.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[DIP25]                     |[DIP25][DIP1000] Wrong
                   |Unreproducible/wrong        |"return as a parameter
                   |"return as a parameter      |attribute" inference
                   |attribute" inference        |

--
March 19, 2018
https://issues.dlang.org/show_bug.cgi?id=18445

Carsten Blüggel <chilli@posteo.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|18444                       |

--- Comment #1 from Carsten Blüggel <chilli@posteo.net> ---
(In reply to Carsten Blüggel from comment #0)
> Example from phobos (-dip1000, DMD64 D Compiler v2.078.2+/master): https://github.com/dlang/phobos/blob/master/std/container/slist.d
> 
> make -f posix.mak std/container/slist.test (-dip1000 switch for that module)
> 
> std/container/slist.d(378) [referring to struct SList(T). size_t
> insertFront(Stuff)(Stuff stuff)]: Error: parameter stuff is return but
> function does not return any indirections
> 
> No error, when -dip25 switch is thrown instead.

Fixing slist.d to be -dip1000 compilable doesn't depend on this issue any more


Referenced Issues:

https://issues.dlang.org/show_bug.cgi?id=18444
[Issue 18444] [DIP25][DIP1000] Tracking issue for: "The implementation doesn't
match DIPs 25/1000"
--
March 19, 2018
https://issues.dlang.org/show_bug.cgi?id=18445

Carsten Blüggel <chilli@posteo.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--