clear()

Michel Fortin michel.fortin at michelf.com
Fri Oct 9 12:42:32 PDT 2009


On 2009-10-09 14:59:20 -0400, Andrei Alexandrescu 
<SeeWebsiteForEmail at erdani.org> said:

> Leandro Lucarella wrote:
>> Bike-shed, but what about the previously suggested name recycle()? I think
>> it make the intention more clear (no pun intended ;)
> 
> Recycle suggested to me that the memory of the object is recycled.

'Recycle' is a good term to explain what you intend to do with the 
object. But I agree with Andrei: 'clear', 'reset' or something alike is 
much better to explain you're putting the object back in its initial, 
default, untainted state.


-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/




More information about the Digitalmars-d mailing list