[REBOL] Re: Help me, Obi Reb Kenobi, you're my only hope!
From: lmecir:mbox:vol:cz at: 3-Sep-2002 14:49
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