[Issue 18445] [DIP25][DIP1000] Wrong "return as a parameter attribute" inference

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 19 10:46:08 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=18445

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

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

--- Comment #1 from Carsten Blüggel <chilli at 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"
--


More information about the Digitalmars-d-bugs mailing list