Thread overview
DMD default safety command line switch
Mar 09, 2017
XavierAP
Mar 09, 2017
Adam D. Ruppe
Mar 10, 2017
Jack Stouffer
Mar 10, 2017
XavierAP
Mar 10, 2017
XavierAP
Mar 10, 2017
Jack Stouffer
Mar 10, 2017
XavierAP
March 09, 2017
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
March 09, 2017
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.
March 10, 2017
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.
March 10, 2017
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 :)
March 10, 2017
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;)
March 10, 2017
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.
March 10, 2017
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