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

[REBOL] Re: Building scripts

From: zokie:libero:it at: 21-Jan-2002 14:02

Hello Romano On 20-Gen-02, Romano Paolo Tenca wrote:
> Perhaps we could put in the header block of the file: > > Export: [["func1" 1.0.0] ["func2" 2.0.0] ["func2" 0.0.1]]
Yes, this may simplify dirty jobs, but including by hand all declared functions in the header is a tedious job. Please read even my other mail: the "builder" script should collect all declared functions into code by parsing it, so it is secure that no typing error or authors's forgetfullness will rise bugges :)
> Import shoul trace scripts to not do the same script twice and discover > circular inclusions.
This is easy to achieve, "builder" script collects (before to start real reforming process) included script name and appends into a block like this one: a: [%/a/first.r %/b/second.r %/a/first.r] by using sort command, it becomes: [%/a/first.r %/a/first.r %/b/second.r] Now with a simple foreach-cycle, "builder" discards every double file recall. Isn't it easy? :) Regards -- "Where did you get all those facts!?!"