Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] why 2 error?

From: pat665:ifrance at: 22-Nov-2001 22:30

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