Skip to main content
7 events
when toggle format what by license comment
Aug 18, 2011 at 15:25 comment added Kevin Inception or recursion?
Aug 18, 2011 at 14:28 comment added Rook @Dean - Actually in fortran you can start the lower index at whatever you want a(0:19), a(-19,19) ... it is only by default that they start at one a(19) assumes the lower bound is 1. I do understand the point you were trying to make however.
Aug 18, 2011 at 14:06 comment added alternative Don't forget 1/2-based indexing
Aug 18, 2011 at 13:36 comment added haylem Worth noting than VS is not the only editor doing this and that it would be harsh to blame it for its behavior. Even Emacs numbers lines starting from 1 (and rightly so, as you pointed out).
Aug 18, 2011 at 12:24 comment added Konrad Morawski @Dean Harding I meant they are - internally. Numbering them from 1 is sort of syntax sugar. At least this is my understanding...? Anyhow, .NET standard is much more of a rule than an exception in this aspect.
Aug 18, 2011 at 12:21 comment added Dean Harding "All array and data-structures are indexed based on zero" -- this is not true, all arrays are not zero-indexed, though it's quite common these days. Many historical languages used mathematical-style 1-based indexing (Fortran and COBOL come to mind) but even the more modern Lua uses 1-based indexing.
Aug 18, 2011 at 11:16 history answered Konrad Morawski CC BY-SA 3.0