root/trunk/orca/tests/working/context.r

Revision 496, 359 bytes (checked in by krobillard, 14 months ago)

Orca - bind now binds lit-words.

Line 
1REBOL [
2    Purpose: {Shows how object cloning copies & binds blocks.}
3]
4
5blk: [v: 1 p: does [print v] b: [v]]
6a: context blk
7b: make a [v: 2]
8
9a/p
10b/p
11
12print same? a/b b/b
13print same? a/b blk/7
14
15print do a/b/1
16print do b/b/1
17print do blk/7/1
18
19
20; Shows lit-words are bound to context.
21c: context [
22    a: none
23    f: func [val] [set 'a val]
24]
25c/f 5
26print c/a
Note: See TracBrowser for help on using the browser.