The difference is as follows:
disarm err: make error! {an error}
undefined? 'err ; == false
word: 'err
error? try [get/any :word] ; == true
Personne savant n'est tombe de ciel, comme on dit chez nous. (could you
correct my translation?)
Cheers
Ladislav
----- Original Message -----
From: "Patrick Philipot" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 22, 2001 10:30 PM
Subject: [REBOL] why 2 error?
Hi,
Reading Ladislav "Words, Aliases, Contexts, Visualizations, Bindings and
Scope in Rebol.html" I found the following function.
undefined?: func [
{determines, if a word is undefined}
word [any-word!]
] [
error? try [error? get/any :word]
]
I can't figure out why there is two error? in the last line.
It seems to me (and I have experimented on the console) that >> error? try
[get/any :word] << will do the job as well. I'm afraid I am missing
something because I have seen in many rebol-list posts that Ladislav is
dedicated to produce clean and concise code.
So what's wrong with my shorter (and presumptuous) version ?
Mais c'est en forgeant, qu'on devient forgeron, comme on dit chez nous.
Patrick
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.