Question re: 0 vs. 1 based indexing 

Forum: Com Sci 221, U Chicago, Autumn 2001, Old Classwork
Re: News Assignment #4 due Monday, 22 October (Mike O'Donnell)
Date: 2001, Oct 15
From: Jesse Dailey jldailey

  would it be acceptable if we re-wrote the invariants and pre-/post-assertions to be based around 0 indexed lists, instead of simply ignoring the 0th element of the list.
  there is an extremely annoying amount of work around required in most languages (Perl, and C at least both require it) in order to deal with this. The statements should not suffer any loss of meaning or generality under a simple index shift.

jesse.


Messages

1. Feedback It wouldn't be that bad would it? by Matthew Stover, 2001, Oct 15
2. Feedback Stick with 1..N --- it's no trouble at all by Mike O'Donnell, 2001, Oct 15

to: "re: 0 vs. 1 based indexing"