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

[REBOL] Re: Redefining system words - gotchas

From: tim-johnsons:web at: 26-Apr-2007 16:16

On Thursday 26 April 2007 23:03, Gregg Irwin wrote: errors could be introduced.
> I've become leery of redefining system words at a global level, > especially in larger projects, but I know that's part of the appeal of > REBOL; so I would suggest using Ladislav's INCLUDE function, that > allows you to specify that something should not be loaded if it > already has been.
Hi Greg: I've already got that functionality: ;; ------------------------------------------------------------------- load-with-path 'file: 'do file, if not already loaded, and not found in local folder search a block of paths. ;; ------------------------------------------------------------------- import 'word: converts 'word to %file + .r and calls load-with-path ;; ------------------------------------------------------------------- modules {space-delimited words in string} - multiple functionality also leverages load-with-path and has built-in debugging. One could put a keywork into the docstring and then I could look for a keyword in third :pick ..... that is, parse the docstring. thanks tim -- Tim Johnson <tim-johnsons-web.com> Palmer, Alaska, USA