What if I want to place under repend result [ ]
following statement:

if error? try [
        repend result read to-file join aDirectory join fileName form chapter-
info
][
        repend result copy/part fileName back tail fileName 
]

is it possible only with: 

either error? try [
        read to-file join aDirectory join fileName form chapter-info
][
        copy/part fileName back tail fileName 
][
        read to-file join aDirectory join fileName form chapter-info
]

?

Janeks

On 15 Mar 2005 at 0:33, Anton Rolls wrote:

...
> There are lots of places in the code where you can optimize
> in the above way. All those REPEND RESULT are repetitive and it's
> usually more convenient to put everything to be repended into a block
> and repend that just once, eg:
> 
>  repend result [
>   blah
>   blah
>   blah
>  ]
> 
...
> 
> Regards,
> 
> Anton.
> 
> > Hi, Rebolers!
> > 
> > I tried to make a simple web site creation script (attached) that
> > makes web site from set of templates and simple article files and
> > chapter structure based on directory structure.
> > 
> > It would be interesting for me to get some opinions of yours 
> > about coding style and security of my approach.
> > 
> > brgds
> > Janeks
> -- 
> To unsubscribe from the list, just send an email to 
> lists at rebol.com with unsubscribe as the subject.
> 


-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to