Hi Sunanda,

> troublesome-script: {
> ,
>     REBOL [needs: [9.9.9 xxx]]
>     }
> script? troublesome-script  ;; finds a valid header : correct!
> load-header troublesome-script  ;; Romano's script -- finds a valid header:
> correct!
> load troublesome-script         ;; fails due to the 'need
> ** Script Error: This script needs xxx  or better to function correctly
> ** Near: load troublesome-script
> load/all troublesome-script     ;; fails due to the preamble
> ** Syntax Error: Invalid word -- ,
> ** Near: (line 2) ,
> Looks like I am going to have to do a 'load and then trap and accept the
> 'needs error.
> A more elegant solution would be welcome,

troublesome-script: {
,
     REBOL [needs: [9.9.9 xxx]]
}
load-all-script: func [s][
    if s: script? s [
        load/all s
    ]
]

load-all-script troublesome-script

---
Ciao
Romano

-- 
To unsubscribe from this list, just send an email to
[EMAIL PROTECTED] with unsubscribe as the subject.

Reply via email to