www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - -transition=safe and DIP1000

reply Mike Franklin <slavo5150 yahoo.com> writes:
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
Jan 21 2018
next sibling parent ketmar <ketmar ketmar.no-ip.org> writes:
Mike Franklin wrote:

 And what does "NB" mean?
"nota bene". used as "pay attention to the following".
Jan 21 2018
prev sibling parent reply Mike Franklin <slavo5150 yahoo.com> writes:
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.
Jan 21 2018
parent reply Carsten =?UTF-8?B?QmzDvGdnZWw=?= <invalid posteo.de> writes:
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
Jan 21 2018
parent Carsten =?UTF-8?B?QmzDvGdnZWw=?= <invalid posteo.de> writes:
 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 ?
Jan 21 2018