![]() |
static.rAuthor: Vincent Ecuyer Contents:1. Purpose2. Usage 3. Example 4. Commented Code 5. REBOL 3 Considerations 1. Purpose
2. Usagestatic <block of static vars with initial values><function> 3. Example
4. Commented Codestatic: func [ "Builds a function with static vars" vars [block!] "Block of set-words value pairs" func [function!] "Function" ][ ; builds an object ('vars) containing the vars vars: context vars ; binds the body of the function to the 'vars object bind second :func in vars 'self ; attaches the function to the 'vars object vars/self: :func ] 5. REBOL 3 Considerations
|
![]() | MakeDoc2 by REBOL - 30-Jan-2013 |