On Thu, 3 May 2001, Wayne Scott wrote:

>     #simplified for this discussion
>     def fetch(arg2)
>         # cheesy block to flush cache if it has gotten too big
>      	if @cache.length > 200
>   	    # one pass at flushing cache
> 	    @cache.dup.each do |arg2, file|       ## (1)
>     		file.flush
>     		@cache.delete arg2
>     	    end
>     	end
> 	unless @cache[arg2]			  ## (2)
> 	    @cache[arg2] = @cl.new(@arg1, arg2)
> 	end
> 	@cache[arg2]
>    end

I don't know if the behavior should change but I think it should at
least issue a warning if there is reuse like this.

See "use strict" discussion.

   - Eric B.

--
"Disciplinarian"