Phobos is now compiled with -preview=dip1000

Dukc ajieskola at gmail.com
Wed May 15 07:21:55 UTC 2019


On Wednesday, 15 May 2019 at 07:56:48 UTC, Walter Bright wrote:
>> About -DIP1000, I sure want to use it. But is there currently 
>> any practical way to learn it's usage without researching 
>> compiler source code?
>
> Simply add the switch -preview=dip1000 to your builds, and 
> follow where it leads.

Bound to cause bad practices without nothing to tell why it works 
how it works. How do I know when I'm supposed to add `scope`? Or 
how to react when the compiler complains about escaping 
references? I have some basic image in my head formed from your 
DIP paper, but I read somewhere that it's outdated.

Could be worth a try even without docs, but in the long run we 
definitely need some explaining.


More information about the Digitalmars-d-announce mailing list