Thread overview
-transition=safe and DIP1000
Jan 21, 2018
Mike Franklin
Jan 21, 2018
ketmar
Jan 21, 2018
Mike Franklin
Jan 21, 2018
Carsten Blüggel
Jan 21, 2018
Carsten Blüggel
January 21, 2018
I found the following statement in the DIP1000 document (https://github.com/dlang/DIPs/blob/master/DIPs/DIP1000.md)

> NB: this DIP is out of sync with -transition=safe implementation available in dmd and pending a rewrite. Most key points still apply though.

What is/was `transition=safe`?  I can't find any documentation on it.

And what does "NB" mean?

Thanks,
Mike

January 21, 2018
Mike Franklin wrote:

> And what does "NB" mean?
"nota bene". used as "pay attention to the following".
January 21, 2018
On Sunday, 21 January 2018 at 10:04:36 UTC, Mike Franklin wrote:

> What is/was `transition=safe`?  I can't find any documentation on it.

Well, I found http://forum.dlang.org/post/gquxgusfhyigirfpejnw@forum.dlang.org

But, didn't really clear much up for me.

January 21, 2018
On Sunday, 21 January 2018 at 10:27:05 UTC, Mike Franklin wrote:
> On Sunday, 21 January 2018 at 10:04:36 UTC, Mike Franklin wrote:
>
>> What is/was `transition=safe`?  I can't find any documentation on it.

Adding -transition=? to the dmd (v2.078.0) command line doesn't show safe listed.
My understanding is, currently read DIP1000 as:
"NB: this DIP is out of sync with -dip1000 compiler switch implementation ...".

Yes, the representation of DIP1000.md deserves improvement: It takes (too) much time to get a grip on it, maybe discouraging, though the idea itself is not that complicated as it is presented. I additionally warmly recommend Walter Bright's "Pointers Gone Wild: Memory Safety and D - Walter Bright | DConf2017" https://www.youtube.com/watch?v=iDFhvCkCLb4
January 21, 2018
> My understanding is, currently read DIP1000 as:
> "NB: this DIP is out of sync with -dip1000 compiler switch implementation ...".

My own current problem fits well in this thread:

I want to push forward support of -dip1000 in phobos, testing each module's compatibility with -dip1000 individually and try to fix where required/possible.
There is https://github.com/dlang/phobos/blob/master/posix.mak, I added to my forks file:
DFLAGSSINGLE=$(DFLAGS) -dip1000
and fiddled to introduce DFLAGSSINGLE in the proper target, yet realizing, make/makefile and it's cryptic details knowledge largely left my brain.

Can anybody give me a hint, ideally introducing a target for that purpose, if required?
Invocation will be: make -f posix.mak std/somemodule.test   ?