Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] =?iso-8859-2?Q?=27context=27=20related=20help=20needed?=

From: rebol-list2::seznam::cz at: 16-Jul-2001 9:12

Hello, I've quite complex structure so I've simplified the problem to this example: I've two files. One is data file %test-data.r (object) which looks like that: Rebol[] make object! [ command: [my_fce 'other_data] ] and the main script: sys: make object! [ content: make object! [ my_fce: func[arg][print ["doing: " arg]] some_data: make object! [ command: [my_fce 'some_data] ] other_data: do %test-data.r do-it: func[][ do some_data/command probe other_data do other_data/command ] ] ] and now I want to make some action that's defined in the command value in the 'content context:
>> sys/content/do-it
doing: some_data ;correct evaluation make object! [ command: [my_fce 'other_data] ] ** Script Error: my_fce has no value ** Where: do-it ** Near: my_fce 'other_data
so if I have the data loaded from second file, the context is not same as in content object:( but I need it ) Anybody can help me please? thanx Oldes ______________________________________________________________________ Letali jste nekdy ve vlnach? My ano!