Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: R: Re: Correct Behaviour? Was False = 2 ????

From: robbo1mark:aol at: 4-Jul-2001 4:20

Odd Man Out? I did a quick language check last night and it seems REBOL is now odd man out as far as zero indexing is concerned. I looked at Visual Basic, Pascal, Modula-2, C, C++, C#, Java, Javascript, Perl, Python, Fortran amongst others and they ALL use zero based indexing. Now before anybody screams at me about Visual-Sickbay if you check the latest VB.NET you will see they have changed completely to zero based indexing, whereas before with VB6 you had the option of an offset which allowed you to use either 0 or 1 based indexing. Fortran dates from the mid / late Nineteen Fifties so I declare now we can stop attributing blame for this at that Langauage which WE dare Not mention it's name. cheers, Mark Dickson In a message dated Tue, 3 Jul 2001 2:59:30 PM Eastern Daylight Time, Chris <[chris--starforge--co--uk]> writes: << #03-Jul-01# Message from [*JELINEM1--nationwide--com*]: Hi [JELINEM1--nationwide--com],
> INDEX or POSITION? Are we mathematicians (INDEX) or, um, not (POSITION)?
We're programmers: we both and neither.
> After programming in C for a decade myself, I STILL had to mentally coerce > myself into remembering "array starts at zero, loop until less-than the > length...". This came from firm roots in BASIC as a first language. I
Learning BASIC is like being taught at a Catholic school (I should know, I went to one;)) - you never get over it. My brush with BASIC was thankfully short, after 6 or 7 years of C, c++ and now Java programming I find myself using 0 indexed values all over the place unless I stop myself! :) Chris -- New sig in the works Explorer 2260, Designer and Coder -- A straw vote only shows which way the hot air blows. -- O'Henry