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

[REBOL] Re: Building scripts

From: rotenca:telvia:it at: 20-Jan-2002 17:22

Hi Brett
> So some interesting ideas: > > Where does your function definition live? [ in a block, in a script, in > rugby ] > How do you find it? [Using a naming service, a consistent directory > structure, etc.]
Perhaps we could put in the header block of the file: Export: [["func1" 1.0.0] ["func2" 2.0.0] ["func2" 0.0.1]] The export block could be expanded to keep other things (comment...). A library parser could read the header of every file in the dir to find func name / func version and if match, to do all the script. import librarydir "func1" 0.0.0 The script could contain another import statement. Import shoul trace scripts to not do the same script twice and discover circular inclusions. --- Ciao Romano