Ethan Merritt wrote:
>>Is it worth complexifying the code to save 1K bytes of memory?
>
>
> No. But that isn't the motivation. The idea is to make
> parameter allocation dynamic, so that we don't have a hard-coded
> maximum number. I was just pointing out that switching to
> dynamic allocation would save space as a side benefit.
I almost always vote for dynamic allocation. "lot's of memory" shouldn't be an
excuse for inelegant programming.
Dan
|