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

[REBOL] Re: Hack

From: rotenca:telvia:it at: 28-Dec-2001 21:31

Hi Sunanda and all, I've read the Sunanda msg on escribe: you are right, hackf doesn't work in your example. But the reason is not that it is defined in a object, but that it is called with a path. Seems that where uses exactly the word of the path refinement which is normally a global word. Look at these examples (which use the old version of hack): Hacko: make Object! [ hackF: func ["hackF" /local myself] [ error? probe err: disarm try [2 / 0] myself: get in err 'where print [ "my name is:" myself "^/my body is:" mold second get myself "^/my spec is:" mold third get myself ] ] hackf ] do in hacko 'hackf hacko/hackf do bind [hacko/hackf] in hacko 'self Only the third time the hack fails. --- Ciao Romano