Micah Cowan <[EMAIL PROTECTED]> writes:

> Right. What I was meaning to prevent, though, is the need to do:
>
>   foo[foo_data + foo_idx[i]]
>
> and instead do:
>
>   foo[i]

That is why my example had a foo function, which turns foo[i] to
foo(i), but otherwise works the same.  Using just foo[i] is
unfortunately not possible because it requires either keeping all the
relocations (in which case the foo_data+foo_idx excercise doesn't make
sense) or resorting to the 2D array-of-char trick.

Reply via email to