3 ms·
> Reminds me again of GNU Guile's arrays, which also allow you to specify what index an array starts with. Very flexible. Reminds me of the "OPTION BASE" state
by skissane 3y ago
> Reminds me again of GNU Guile's arrays, which also allow you to specify what index an array starts with. Very flexible.
Reminds me of the "OPTION BASE" statement in BASIC. Found in Microsoft BASICs all the way from GW-BASIC (and probably even earlier than that) through to classic Visual Basic, VBA and VBScript (but not VB.NET). Not sure when it originated, possibly it goes all the way back to some version of the original Dartmouth BASIC (they changed the array base at some point from 1 to 0, so "OPTION BASE" enabled backward compatibility). Also found in some non-Microsoft BASICs, e.g. IBM System/34 BASIC. ANSI Full BASIC (did anyone ever implement it?) supported arbitrary array bases, not just 0 or 1, e.g. "DIM A(100 TO 200)"