|
Pages: [1]
|
 |
|
Author
|
Topic: problem of context (Read 281 times)
|
Guest
Guest
|
a: context [ b: [] f: func [l c] [b: copy l bind l 'f bind c 'f use b [ do c ]]]
>> e ** Script Error: e has no value ** Near: e >> a/f [e] [e: 1] == 1 >> e == 1 >> unset 'e >> use a/b [do [e: 2]] == 2 >> e ** Script Error: e has no value ** Near: e >>
why the first example doesn't work, how can i do not to have e created?
|
|
|
|
|
Logged
|
|
|
|
|
Gabriele
|
In you example, it is not clear what would the difference be between using: use [e] [e: 1] and using: a/f [e] [e: 1] What do you need to do exactly?
|
|
|
|
« Last Edit: April 07, 2005, 07:54:11 AM by Gabriele »
|
Logged
|
|
|
|
Guest
Guest
|
the difference between the two examples is that in the first one it does'nt work, e is not set as a local variable as in the second example
|
|
|
|
|
Logged
|
|
|
|
|
Gabriele
|
Yes, I get that (and I know why it doesn't work, too - BTW, there has been a thread about this in the mailing list, you should probably check it out). But, why do you need it to work that way? Can't you just use the USE function?
|
|
|
|
|
Logged
|
|
|
|
|
|
Pages: [1]
|
|
|
 |
News: 01-09-08 Alpha version of REBOL 3 has been released!
2287 Posts in 593 Topics by 3729 Members
Latest Member: Cibjlmwr
|