[REBOL] Re: Building scripts
From: rotenca:telvia:it at: 22-Jan-2002 20:13
> > 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.
Was my first idea but i saw that someone wanted to make some check about
version and something else.
> 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 :)
It is the direct solution, but code must be written like a simple collection
of functions. If you embed functions in objects and set them with the 'set
set 'myfunc does [none]
the parser must do an hard work to understand the code and find the 'myfunc
> 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
> Isn't it easy? :)
Yes, with 'unique also more. But to collect the files name you must do the
files to execute the new import func, so we can't collect all the inclusions
before do-ing the scripts.