This needs a different approach
Steven Schveighoffer
schveiguy at yahoo.com
Mon Apr 28 21:51:16 PDT 2008
"Saaa" wrote
>I think I get your code now :)
>
> 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)
>
> Wouldn't a function table be more appropriate?
Maybe :) You keep changing the rules, so I'm not sure now.
More information about the Digitalmars-d-learn
mailing list