[REBOL] Stupid function contexts (or stupid Rebol user?)
From: d4marcus:dtek:chalmers:se at: 5-Dec-2001 22:00
Hi,
For probably the hundredth time, I have stumbled over the problem with
function contexts, or however you would call it.
It's the usual problem: There's an object, containing a bunch of parse
rules and a function. The parse rules make use of same words that are
local to the function. This doesn't work of course.
Solution 1 (bad): Put all the parse rules in the function, which means
they are redefined every time the function is executed.
Solution 2 (worse): Put all words in the object, which mean the function
can only be called once at a time, i.e. it must finish until it can be
called again, since some words can't be shared. This makes using it with
several faces at once impossible.
Solution 3 (good): Insert you suggestion here, please. :-)
Btw, does anyone have a decent standalone presentation script? Something
using simple colored named boxes, which you can connect your own docs
presented in a similar fashion to the easy-draw doc (a full MDP-to-VID
converter would be nicer still). I have thrown together one which almost
does what I want, except that it doesn't quite work because of the problem
above, and besides it's not general at all. A dialect for building this
kind of presentation would come useful.
Marcus
------------------------------------
If you find that life spits on you
calm down and pretend it's raining