Any idea why the following doesn’t work? (R3)
o: make object! [
foo: does [do "bar"]
bar: does [print "hello from bar"]
]
o/foo
** Script error: bar has no value
** Where: catch either -apply- do foo
** Near: catch/quit either var [[do/next data var]] [data]
Try this:
You need that BINDing because your “bar” lives in the object, not in global scope.
Check this out as well:
You need to LOAD it because it is a string, but it has to be a word to be BINDed.
So these will work too (put them in your object):
or