This needs a different approach

Saaa empty at needmail.com
Tue Apr 29 08:48:48 PDT 2008


>> Tell me if I'm wrong:
>> This approach makes initializing the  fruits list a bit more complex.
>> Changing an item in the list to another fruit requires the GC (the 
>> previous instance needs to be deleted)
>> Changing an item is more costly than changing a number. (A lot of the 
>> items get changed 30 times per second)
>
> describe the program flow - but without code
>
> does the fruit realy change? - why?

I confused two arrays yesterday. The fruits don't change as often as I said 
(more like once every few seconds for only a small percentage of all 
fruits).
As to how the flow is; that loop is called 30 times / sec. And eating a 
fruit may change it to another fruit.




More information about the Digitalmars-d-learn mailing list