Posted by Lil' Viv on July 15, 2001 at 18:47:00:
In Reply to: policy question posted by tebun on July 15, 2001 at 04:23:42:
Well, you will return failure occasionally for a number of reasons . . . one of those could be that the foo object does not like the argument for which the constructor was called . . . that's one.
And, interpret LRU as you will . . . Least Recently Used . . . so, I wouldn't say oldest foo, but the foo that hasn't been used recently . . . this could present quite a challenge . . .in his office hours, he did mention that he *could* be cruel and make it so if you don't do it by LRU, he could make it so our program is always needing to access the foos that we didn't have, therefore we'd run out of CPU time and do poorly. That's enough motivation for me to pursue the LRU policy . . .
(I shouldn't have picked up a Playstation 2 and games/accessories two days before project 2 was due. =P)