|
"James H H Lampert" <jamesl@xxxxxxxxxxx> wrote: > Which is to say, I've written lots of programs that use > The Cycle as an event loop, and a few that use it to ride > around an entire file, and a few that use it to ride > around some chunk of a file ... A trivial program that uses the cycle but does not have a primary file: d count s 3i 0 /free count = count + 1; if count = 5; *inlr = *on; endif; /end-free Now, does "count" get incremented once or several times? Does it finally overflow? Does the program loop forever? If it terminates, is LR on or off? Any programmer familiar with the cycle should get the correct answers immediately. For those not familiar with the cycle the questions might be a bit tougher. If you're not sure try stepping through it in debug and watching what happens. I feel that RPG programmers should have at least a basic understanding of the cycle even if they never use it. After all it is still a feature of the language. -- Dave... ______________________________________________________________________ This message may contain confidential information which may also be legally privileged and is intended only for the use of the parties to whom it is addressed. If you are not an intended recipient you are hereby notified that any disclosure, copying, distribution or use of any information in this e-mail is strictly prohibited. If you receive this message in error please notify the sender by return e-mail and then destroy it. Further, we make every endeavour to keep our network free from viruses. However, you do need to verify that this e-mail and any attachments are free of viruses as we can take no responsibility for any computer viruses which might be transferred by way of this e-mail. All information and attachments remain the property of Stolt Offshore Group and should be held as confidential.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.