[TUHS] Array index history

Johnny Billquist bqt at softjar.se
Fri Jun 9 10:21:05 AEST 2017


All variants of BASIC by DEC does this. A few others I've tried also do. But since BASIC was not standardized for the longest time, it's hard to claim that BASIC really was one way or another. I have definitely not tried every dialect that has existed.

  Johnny 


Ron Natalie <ron at ronnatalie.com> skrev: (9 juni 2017 01:16:48 CEST)
>
>> FORTRAN, yes. BASIC (which dialect might we be talking about?)
>normally
>actually start with 0. However, BASIC is weird, in that the DIM
>statement is
>actually specifying the highest usable index, and not the size of the
>array.
>
>Eh?  Not in any BASIC I ever used.   They all started at 1.   Can't
>vouch
>for the later Microsoft "visual" variants but the original 1970's era
>BASIC
>started with 1.
>DIM X(10) gave you ten elements from 1...10

-- 
Skickat från min Android-enhet med K-9 Mail. Ursäkta min fåordighet.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20170609/4064e9af/attachment.html>


More information about the TUHS mailing list