Is it true scope declarations are being removed?
Jonathan M Davis
jmdavisProg at gmx.com
Mon Jan 24 00:46:13 PST 2011
On Monday 24 January 2011 00:37:40 Trass3r wrote:
> > scope declarations are going away because they're inherently unsafe.
>
> Pointers are inherently unsafe as well ;)
Well, you can't take those out of the core language and put them in the standard
library. And there _are_ cases where pointers are perfectly safe. It's pointer
arithmetic and taking the addresso of a local variable which is unsafe. Those
are going to be restricted to SafeD. Andrei decided that scope was too unsafe to
have in the language (and presumably Walter agreed) and it _can_ be put into the
standard library. If you have a problem with it, take it up with him.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list