Click here to Skip to main content
15,915,094 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: What to call array indexing starting at 0 vs. 1 ? Pin
PIEBALDconsult23-Sep-13 4:03
mvePIEBALDconsult23-Sep-13 4:03 
GeneralRe: What to call array indexing starting at 0 vs. 1 ? Pin
Michael Waters23-Sep-13 5:39
Michael Waters23-Sep-13 5:39 
GeneralRe: What to call array indexing starting at 0 vs. 1 ? Pin
kalberts24-Sep-13 23:05
kalberts24-Sep-13 23:05 
GeneralRe: What to call array indexing starting at 0 vs. 1 ? Pin
Michael Waters25-Sep-13 3:28
Michael Waters25-Sep-13 3:28 
AnswerRe: What to call array indexing starting at 0 vs. 1 ? Pin
englebart20-Sep-13 3:34
professionalenglebart20-Sep-13 3:34 
AnswerRe: What to call array indexing starting at 0 vs. 1 ? Pin
etkid8420-Sep-13 4:03
etkid8420-Sep-13 4:03 
GeneralRe: What to call array indexing starting at 0 vs. 1 ? Pin
Michael Waters23-Sep-13 5:41
Michael Waters23-Sep-13 5:41 
GeneralRe: What to call array indexing starting at 0 vs. 1 ? Pin
kalberts25-Sep-13 1:25
kalberts25-Sep-13 1:25 
Do you know when Fortran got the option to specify the lower index limit?

In "classical" Fortran, arrays indexes always started at 1. I am quite sure that didn't change in Fortran-77; I never read the Fortran 90 standard (and Wikipedia doesn't give enough detail).

Nostalgia: The MIX3 instruction on the 16-bit NORD minicomputers, which subtracted 1 from the accumulator and multiplied by 3. It was made especially made for FORTRAN. NORD used a 48 bit floating point format (3 16 bit words). So MIX3 converted from a FORTRAN logical index to the word offset (the machine was word, not byte, adressable) of the floating point array element. The "multiply by 3" part was done by shifting one left and adding, so it was a lot faster than using the general multiply instruction.
GeneralRe: What to call array indexing starting at 0 vs. 1 ? Pin
Michael Waters25-Sep-13 3:37
Michael Waters25-Sep-13 3:37 
AnswerRe: What to call array indexing starting at 0 vs. 1 ? Pin
RefugeeFromSlashDot20-Sep-13 5:21
RefugeeFromSlashDot20-Sep-13 5:21 
GeneralRe: What to call array indexing starting at 0 vs. 1 ? Pin
kalberts25-Sep-13 0:44
kalberts25-Sep-13 0:44 
GeneralRe: What to call array indexing starting at 0 vs. 1 ? Pin
RefugeeFromSlashDot25-Sep-13 2:56
RefugeeFromSlashDot25-Sep-13 2:56 
GeneralFor the racing car fans Pin
vonb19-Sep-13 3:17
vonb19-Sep-13 3:17 
GeneralRe: For the racing car fans PinPopular
PB 369,78319-Sep-13 3:26
PB 369,78319-Sep-13 3:26 
GeneralRe: For the racing car fans Pin
CBadger19-Sep-13 4:29
professionalCBadger19-Sep-13 4:29 
GeneralRe: For the racing car fans Pin
vonb19-Sep-13 4:35
vonb19-Sep-13 4:35 
GeneralRe: For the racing car fans Pin
  Forogar  19-Sep-13 4:30
professional  Forogar  19-Sep-13 4:30 
GeneralRe: For the racing car fans Pin
hairy_hats19-Sep-13 5:22
hairy_hats19-Sep-13 5:22 
GeneralRe: For the racing car fans Pin
CPallini19-Sep-13 7:40
mveCPallini19-Sep-13 7:40 
GeneralRe: For the racing car fans Pin
R. Giskard Reventlov19-Sep-13 6:32
R. Giskard Reventlov19-Sep-13 6:32 
GeneralI hate MS Pin
wout de zeeuw19-Sep-13 2:42
wout de zeeuw19-Sep-13 2:42 
QuestionRe: I hate MS Pin
CPallini19-Sep-13 2:49
mveCPallini19-Sep-13 2:49 
AnswerRe: I hate MS Pin
wout de zeeuw19-Sep-13 2:56
wout de zeeuw19-Sep-13 2:56 
GeneralRe: I hate MS Pin
CPallini19-Sep-13 2:59
mveCPallini19-Sep-13 2:59 
GeneralRe: I hate MS Pin
Nagy Vilmos19-Sep-13 3:01
professionalNagy Vilmos19-Sep-13 3:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.