Hi Romano,

the behaviour seems to have more to do with function attributes:

<<Romano>>
...
no-loop error! seems to have the same beaviour which has any others error,
when a function has at least the attribute []:

>> error? do func[][return make error! "any"] ;== true
>> error? do func[[]][return make error! "any"]
** Throw Error: Return or exit not in function
** Where: func [[]][return make error! "any"]
** Near: return make error! "any"

<</Romano>>

See the following code samples:

    type? do does [type? do func [] [return make error! ""]] ; == datatype!

    type? do does [type? do func [[throw]] [return make error! ""]] ; ==
error!

    type? do does [type? do func [[]] [return make error! ""]] ; == error!

The empty attribute is interpreted like the [throw] attribute in this case!
It looks like an implementation issue.

Ciao
    Ladislav

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to