LRU cache for ~=
Fawzi Mohamed
fmohamed at mac.com
Tue Oct 20 02:53:29 PDT 2009
On 2009-10-20 03:41:59 +0200, Walter Bright <newshound1 at digitalmars.com> said:
> Denis Koroskin wrote:
>> Safe as in SafeD (i.e. no memory corruption) :)
>
> Right. The problems with other definitions of safe is they are too ill-defined.
no (or as little as possible) undefined behaviour comes to mind.
Initialization of values in D follows that.
Slice appending does not (and will remain so also with LRU cache).
LRU cache improves the current status quo, but is still a cludge:
undefined behavious in some corner cases, undefined optimization
behaviour...
It improves things, but cannot be trusted in general, thus a clean
library type is still needed imho.
Fawzi
More information about the Digitalmars-d
mailing list