Impressed

Christophe Travert travert at phare.normalesup.org
Mon Jul 30 04:23:06 PDT 2012


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?


More information about the Digitalmars-d mailing list