Purity (D2 standard libraries / object.d)

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Mon Jan 12 06:30:37 PST 2009


Walter Bright wrote:
> dsimcha wrote:
>> Good point, the bits in the internal memoization AA will contain a 
>> reference.  I
>> forgot about that.  This leads to another problem, though:  Wouldn't 
>> this cause a
>> lot of soft memory leaks, since you're holding references to stuff that's
>> otherwise no longer needed?
> 
> The job of managing those kind of design tradeoffs is something that the 
> programmer should handle.

*cough* And with weak pointer/reference types we could handle it quite 
nicely. *cough* ;)



More information about the Digitalmars-d mailing list