Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!willett!ForthNet From: ForthNet@willett.UUCP (ForthNet articles from GEnie) Newsgroups: comp.lang.forth Subject: Advanced Beginners Message-ID: <583.UUL1.3#5129@willett.UUCP> Date: 1 Mar 90 02:02:39 GMT Organization: Latest link in the ForthNet chain. (Pgh, PA) Lines: 21 Date: 02-27-90 (23:55) Number: 1610 (Echo) To: IAN GREEN Refer#: 1608 From: NICK JANOW Read: NO Subj: ADVANCED BEGINNERS Status: PUBLIC MESSAGE No, 'N' and 'M' are the maximum counts you desire; the '1's are the starting value. For example: 20 10 DO LOOP Counts from 10 19. Starting with 1 gives you the familiar 1 to n count. The count index is 'I'. Within the loop, 'I' puts the present count value on the top of the stack. For nested loops, as in your question, 'J' returns the count value (index) of the next outer loop. You don't have to declare 'I' or 'J'. 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'