Phobos is now compiled with -preview=dip1000

Mike Franklin slavo5150 at yahoo.com
Fri May 17 05:32:42 UTC 2019


On Friday, 17 May 2019 at 05:22:30 UTC, Mike Franklin wrote:

> My assessment (which could be wrong):
> `scope` and `return` only apply to pointers and `ref`s.  If you 
> remove all `scope` and `return` attributes from the function 
> `push`, it works fine.
>
> I consider it a bug that the compiler doesn't emit an error 
> when using attributes on types for which they are not intended.
>
> Mike

Working example:  https://run.dlang.io/is/TCP0td


More information about the Digitalmars-d-announce mailing list