[REBOL] Importing scripts as functions?
From: mat:eurogamer at: 1-Dec-2000 14:29
Heya Folks,
Awhile back I asked the question on how it might be possible to import
other scripts so some sort of modulate system could be built up.
I plan to build a multi-purpose IRC bot where folks can build their
own functions as scripts.
Andrew pointed me at his effort;
AM> It would be very quick if you use modular plugins to load the scripts at
AM> start up. Have a look at the %units.r script on my site:
AM> http://members.nbci.com/AndrewMartin/Rebol/
Which is far too complicated for me to understand what he's really
doing. However what I *did* realise is that you can build functions up
using Rebol - making my assertion that somehow my bot would go off and
execute the script files on demand quite silly.
Can anyone explain in simple terms, how some Rebol could import
another script and install it as a function or whatever?
I've tried some basic experimentation by creating objects from read
scripts but that doesn't seem to work.
--
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com