How do you do arrays

Erik Max Francis max at alcyone.com
Wed Feb 2 02:12:57 EST 2005


Dennis Lee Bieber wrote:

> 	Classic BASIC actually splits the difference.
> 
> dim a(10)
> 
> allocates 11 elements, indexed 0..10 -- but most classes tend to ignore
> element 0, and algorithms are as if only 10 elements exist starting at
> 1.

Basic also has the OPTION BASE instruction, which affects that.

-- 
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
   War is like love, it always finds a way.
   -- Bertolt Brecht



More information about the Python-list mailing list