Changeset 182 for trunk/thune/doc

Show
Ignore:
Timestamp:
06/11/06 04:56:12 (3 years ago)
Author:
krobillard
Message:

Thune - Added 'forever & 'break.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/thune/doc/UserManual

    r181 r182  
    188188iff       (logic -- )                Evaluate next value if false. 
    189189either    (logic t-val f-val -- )    Evaluate either t-val or f-val. 
    190 while     (body cond -- )            Evaluate body while cond is true. 
    191 loop      (block n -- )              Repeat block **n** times. 
     190forever   (block -- )                Evaluate block until exception thrown. 
    192191iter      (ser body -- )             Iterate over series. 
    193 each      (ser body -- )             Iterate over series and take first element. 
    194 foreach   (ser words body -- )       Iterate over series and assign elements. 
    195192proc      (body -- )                 Create procedure. 
    196193func      (sig body -- )             Create function with local values. 
     
    202199throw     (val -- val)               Throw exception. 
    203200try       (body catch -- )           Try body and catch exception. 
     201break     ( -- 'break)               Break from forever & iter. 
    204202error     (message -- error)         Throw error. 
    205203verify    (a type -- a)              Throw error if datatype does not match. 
     
    214212Word      Stack Usage                Function 
    215213========  =========================  ============================ 
     214each      (ser body -- )             Iterate over series and take first element. 
     215foreach   (ser words body -- )       Iterate over series and assign elements. 
     216while     (body cond -- )            Evaluate body while cond is true. 
     217loop      (block n -- )              Repeat block **n** times. 
    216218proc.env  (env body -- proc)         Create procedure with context. 
    217219========  =========================  ============================