Re: module(system) Identifier;

2008-12-14 Thread BCS
Reply to Andrei, IMHO it is better to keep system-fu at the module level instead of sprinkled all over. This is exactly a case when, counter-intuitively, more restrictive is better. This restrictions will help people organize code with few low-level modules supporting a large number of safe modu

Re: module(system) Identifier;

2008-12-14 Thread Walter Bright
bearophile wrote: (That is to allow to specify a list of what to be safe of, at the top of the module?) A possible syntax: module(safe1, safe2, ...) Identifier; I suggest seeing how things go with just module(System) for now. It may prove to be plenty adequate.

Re: module(system) Identifier;

2008-12-14 Thread Andrei Alexandrescu
BCS wrote: Reply to Walter, bearophile wrote: The last changelog of D2: http://www.digitalmars.com/d/2.0/changelog.html#new2_021 Says: Added -safe switch and module(system) Identifier; syntax.< I am not sure that's the best solution. Doing it at the module level was deliberate.

Re: module(system) Identifier;

2008-12-14 Thread BCS
Reply to Walter, bearophile wrote: The last changelog of D2: http://www.digitalmars.com/d/2.0/changelog.html#new2_021 Says: Added -safe switch and module(system) Identifier; syntax.< I am not sure that's the best solution. Doing it at the module level was deliberate. Not for t

Re: module(system) Identifier;

2008-12-14 Thread bearophile
Walter Bright: > Doing it at the module level was deliberate. Not for technical reasons, > but to make it easy for people doing quality code reviews. System > modules should be segregated and given special attention. Having it > dispersed throughout the code modules pretty much excludes being ab

Re: module(system) Identifier;

2008-12-13 Thread Walter Bright
bearophile wrote: The last changelog of D2: http://www.digitalmars.com/d/2.0/changelog.html#new2_021 Says: Added -safe switch and module(system) Identifier; syntax.< I am not sure that's the best solution. Doing it at the module level was deliberate. Not for technical reasons, but

Re: module(system) Identifier;

2008-12-13 Thread BCS
Reply to bearophile, The last changelog of D2: http://www.digitalmars.com/d/2.0/changelog.html#new2_021 Says: Added -safe switch and module(system) Identifier; syntax.< I am not sure that's the best solution. I like the idea of being able to turn on or off different checks (BTW S

module(system) Identifier;

2008-12-13 Thread bearophile
The last changelog of D2: http://www.digitalmars.com/d/2.0/changelog.html#new2_021 Says: >Added -safe switch and module(system) Identifier; syntax.< I am not sure that's the best solution. A solution that I may like is a statement (that doesn't create a new scope, like the