www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - DMD default safety command line switch

reply XavierAP <n3minis-git yahoo.es> writes:
Andrei's 2010 book states that the default safety level can be 
changed from  system to  safe by means of a -safe command line 
switch, in the case of the DMD compiler. Now I've tried it and 
it's not recognized.

Was this feature remove on purpose? I could imagine that.

The default safety keeps being  system, right?

PS I've found this old thread... I'm looking for a bit less long 
answer to read ;)
http://forum.dlang.org/thread/hcqb44$1nc9$1 digitalmars.com
Mar 09 2017
next sibling parent Adam D. Ruppe <destructionator gmail.com> writes:
On Thursday, 9 March 2017 at 17:48:04 UTC, XavierAP wrote:
 Was this feature remove on purpose? I could imagine that.
Yes, you instead mark individual things safe (or you can do a safe { functions here } group or safe: at the top of a scope). this kinda sucks but alas.
Mar 09 2017
prev sibling parent reply Jack Stouffer <jack jackstouffer.com> writes:
On Thursday, 9 March 2017 at 17:48:04 UTC, XavierAP wrote:
 Andrei's 2010 book states that the default safety level can be 
 changed from  system to  safe by means of a -safe command line 
 switch, in the case of the DMD compiler. Now I've tried it and 
 it's not recognized.

 Was this feature remove on purpose? I could imagine that.

 The default safety keeps being  system, right?

 PS I've found this old thread... I'm looking for a bit less 
 long answer to read ;)
 http://forum.dlang.org/thread/hcqb44$1nc9$1 digitalmars.com
Don't know the history, but as recently as a week ago Andrei has argued against such behavior has balkanizing the community.
Mar 09 2017
parent reply XavierAP <n3minis-git yahoo.es> writes:
On Friday, 10 March 2017 at 00:48:39 UTC, Jack Stouffer wrote:
 Don't know the history, but as recently as a week ago Andrei 
 has argued against such behavior has balkanizing the community.
What behavior? Anyway my question is answered, thanks :)
Mar 09 2017
next sibling parent XavierAP <n3minis-git yahoo.es> writes:
On Friday, 10 March 2017 at 01:13:26 UTC, XavierAP wrote:
 What behavior? Anyway my question is answered, thanks :)
What behavior is a rhetorical question, meaning that I don't really want it to be answered 0;)
Mar 09 2017
prev sibling parent reply Jack Stouffer <jack jackstouffer.com> writes:
On Friday, 10 March 2017 at 01:13:26 UTC, XavierAP wrote:
 On Friday, 10 March 2017 at 00:48:39 UTC, Jack Stouffer wrote:
 Don't know the history, but as recently as a week ago Andrei 
 has argued against such behavior has balkanizing the community.
What behavior? Anyway my question is answered, thanks :)
Changing default behavior which results in incompatible code.
Mar 09 2017
parent XavierAP <n3minis-git yahoo.es> writes:
On Friday, 10 March 2017 at 01:17:57 UTC, Jack Stouffer wrote:
 On Friday, 10 March 2017 at 01:13:26 UTC, XavierAP wrote:
 On Friday, 10 March 2017 at 00:48:39 UTC, Jack Stouffer wrote:
 Don't know the history, but as recently as a week ago Andrei 
 has argued against such behavior has balkanizing the 
 community.
What behavior? Anyway my question is answered, thanks :)
Changing default behavior which results in incompatible code.
Aha of course I agree. No language wants to do this, it goes beyond what is referred as community. But yeah look what happened to Python 3.x
Mar 09 2017