11-16-2022, 06:50 PM
(11-16-2022, 04:48 PM)SMcNeill Wrote: For Library writers, I'd suggest always dimming both upper and lower bounds.
DIM a(0 to 100)
or, if you like OPTION BASE 1:
DIM a(1 to 100)
You never know what someone will have in their program where they include your library file, so it's best to be as self-contained as possible. In both cases above, it doesn't matter what the option base is, as you've explicitly defined what the upper and lower limits of your arrays are going to be.
Ah, so expected behavior. Explicitly setting the boundaries over rides OPTION BASE. Good to know.