Final by default?

Daniel Murphy yebbliesnospam at gmail.com
Thu Mar 13 06:59:41 PDT 2014


"Steven Schveighoffer"  wrote in message 
news:op.xcnxwzc8eav7ka at stevens-macbook-pro.local...

> I would also mention that a "band-aid" fix, if you are always using 
> x.length = 0, is to special case that in the runtime to automatically 
> reset the used size to 0 as well. This is a specialized application, I 
> would think tweaking the runtime is a possibility, and a temporary fix 
> like this until you can update your code would at least provide an 
> intermediate solution.

That would risk breaking code in druntime/phobos. 



More information about the Digitalmars-d mailing list