Impressed

Jonathan M Davis jmdavisProg at gmx.com
Mon Jul 30 11:37:47 PDT 2012


On Monday, July 30, 2012 11:23:06 Christophe Travert wrote:
> Jonathan M Davis , dans le message (digitalmars.D:173382), a écrit :
> > scope on local variables is going away for pretty much the same reason
> > that
> > delete is. They're unsafe, and the fact that they're in the core language
> > encourages their use. So, they're being removed and put into the standard
> > library instead.
> 
> I don't mind scope going away, since it can be replaced with a library
> solution. But scope is not more dangerous than a static array, or simple
> function variables. Slice them, or take their reference, and you're up
> for troubles. Do you think they should be removed as core features of
> the langage?

I don't think that you _can_ implement them in a library.

I _do_ think that implicit slicing of static arrays should go away, since it's 
just begging for bugs. But there's pretty much no way that that's going to 
change at this point.

- Jonathan M Davis


More information about the Digitalmars-d mailing list