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

[REBOL] Re: include, require, yamm, ... Re:

From: weirddream:volny:cz at: 16-Aug-2000 18:51

Nazdarek [brian--hawley--bigfoot--com] yes I know, but I made it as quick hack I needed so it looks not very nice and is not as clever as the rest of 'require. I have to think about it better - looking for newest versions in given paths instead of loading first found script , saving itself with new paths added... It will take time, but the WORD was said - someone NEEDS paths :)
> I'll take a look at it. Already I can tell it's not reentrant, > and the paths don't preserve themselves when the script is done > again like the script list does. Should be easy to fix... > > I designed the require function this way to be more bulletproof > when run in a long-running, server environment. It may seem to > be overkill for quick scripts, but even there the reentrancy is > essential in a script dependencies manager. > > Would you prefer a single search path list, a default list with > the option to specify more paths, the option for a replacement > list, or specifying the list every time? I gave a lot of thought > to the API since the function was written to be used by people > who didn't know how to program well. Any subtleties in the style > of intended usage should be reflected in the interface. > > Of course, require will need a rewrite when module support is > added to REBOL. It would probably be made obsolete by a proper > implementation of the Needs header option. The ongoing task... > > Brian Hawley >
Diky za pozornost, -- --------------------------------------------------------------- Boleslav Brezovsky, NOT know as Kryptoplex, maybe on [weirddream--volny--cz] member of R.U.R (means RobotenUndRebol this week) MUSIC&SOUND ---------------------------------------------------------------