home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / rexx / 868 < prev    next >
Encoding:
Text File  |  1992-09-03  |  1.3 KB  |  38 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!paladin.american.edu!auvm!SERVER.UWINDSOR.CA!OPHOF
  3. X-Mailer: ELM [version 2.3 PL11]
  4. Message-ID: <9209030850.AA04682@SERVER.uwindsor.ca>
  5. Newsgroups: comp.lang.rexx
  6. Date:         Thu, 3 Sep 1992 04:50:20 EDT
  7. Sender:       REXX Programming discussion list <REXXLIST@UGA.BITNET>
  8. From:         Scott Ophof <ophof@SERVER.UWINDSOR.CA>
  9. Subject:      Re: PARSE wishlist/brainstorming
  10. Comments: To: REXXLIST@uga.cc.uga.edu
  11. In-Reply-To:  <9209022327.AA15469@SERVER.uwindsor.ca>; from "Edward T Spire" at
  12.               Sep 2, 92 4:06 pm
  13. Lines: 23
  14.  
  15. On Wed, 2 Sep 1992 16:06:05 GMT Edward T Spire said:
  16. >ets@wrkgrp.COM (Edward T Spire) writes:
  17. >: anders@lise4.lise.unit.no (Anders Christensen) writes:
  18. ...
  19. >: One of the negatives that bothers me is that the customary
  20. >: convention uses STEM.0 to hold the dimension.  Whoever
  21. >: invented that was probably not a mathematician nor a C
  22. >: programmer.  Element zero of an array is wanted by some
  23. >: people.
  24.  
  25. I *like* the imho uncomplicated idea of an array starting at 1 with
  26. the number of elements in element 0. I find it a quite UNsurprising
  27. setup.  The concept of "first element is number 0" bothers *me*...
  28. And the few times I've needed to start at 0, I did the following:
  29.  
  30.   Do I = 0 to element.0
  31.     J = J + 1
  32.     result = do_something_with_element.J
  33.     End I
  34.  
  35.  
  36. Regards.
  37. $$/
  38.