make @safe "non-escapable"?

Johannes Pfau nospam at example.com
Wed Feb 6 23:46:55 PST 2013


Am Wed, 06 Feb 2013 22:46:50 +0400
schrieb Dmitry Olshansky <dmitry.olsh at gmail.com>:

> 06-Feb-2013 22:26, Robert пишет:
> > Guaranteeing that the code in app.cfg has to be safe.
> >
> > I thought of some wrapper like safeImport() which searches the code
> > for @system or @trusted and rejects the code if one of them is
> > found. But this is quite hard to do it right, especially with
> > mixin's. So it's probably best if the compiler handles this.
> >
> > What do you think. Should I file a bug report?
> >
> 
> Yup.
> 

But isn't @system completely useless if it can't overwrite @safe as
@system is always the default?



More information about the Digitalmars-d mailing list