Loading ...
Sorry, an error occurred while loading the content.

[NTB] Re: ^!Goto Loop vs. ^!Clip

Expand Messages
  • Larry Thomas
    Hi Ray, ... ^!Clip Clipname is in effect call the same clip as a subroutine within itself. It wants or tries to return to the calling clip when it finishes.
    Message 1 of 1 , Jun 28, 1999
    • 0 Attachment
      Hi Ray,

      At 01:37 PM 6/28/1999 -0500, you wrote:
      >Hi all,
      >
      >H="Clipname"
      >:LOOP
      >....
      >^!Goto Loop
      >vs.
      >^!Clip "Clipname"
      >
      >For purposes of starting an entire clip over, can you think of any practical
      >differences between the two commands above?

      ^!Clip "Clipname" is in effect call the same clip as a subroutine within
      itself. It wants or tries to return to the calling clip when it finishes.
      To do this, it stores information about the calling clip and the address of
      the next clip instruction in that parent clip in a portion of RAM memory
      called a "stack". If you have this clip locked in a loop calling itself
      over and over again eventually it will overflow the stack and crash the
      clip. ^!Goto loop on the other hand can run indefinitely unless you are
      using code in the body of the loop that also fills or overflows some memory
      space of some kind to cause an error that crashes the clip.

      Regards,

      Larry
      larryt@...

      ------------------------------------------------------------------------

      eGroups.com home: http://www.egroups.com/group/notetab
      http://www.egroups.com - Simplifying group communications
    Your message has been successfully submitted and would be delivered to recipients shortly.