Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!willett!ForthNet From: ForthNet@willett.UUCP (ForthNet articles from GEnie) Newsgroups: comp.lang.forth Subject: All Sorts of Sorts Message-ID: <630.UUL1.3#5129@willett.UUCP> Date: 8 Mar 90 01:02:38 GMT Organization: Latest link in the ForthNet chain. (Pgh, PA) Lines: 27 Date: 03-06-90 (18:12) Number: 3005 (Echo) To: FRANK SERGEANT Refer#: NONE From: IAN GREEN Read: NO Subj: ALL SORTS OF SORTS Status: PUBLIC MESSAGE As you explained it, I am a bit confused. In Modula-2, I can use what is called a subrange to index arrays, consequentky I often use indicies whick are more meaningful, such as the following: Sales: ARRAY [1970..1990] OF REAL; If I pass that array to what is called an open array procedure, 1970 becomes 0 (the arrays internally are zero indexed). Consequently I am oriented to zero-based arrays, simply because I make such extensive use of open-array parameters. Now you mentioned that you use FOR-NEXT over DO-LOOP so could you illustrate examples of nested loops that use the control variables inside, say in a shell-sort of an array. Ian Green NET/Mail : British Columbia Forth Board - Burnaby BC - (604)434-5886 ----- This message came from GEnie via willett through a semi-automated process. Report problems to: 'uunet!willett!dwp' or 'willett!dwp@gateway.sei.cmu.edu'