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

[REBOL] Re: Hack

From: sunandadh:aol at: 30-Dec-2001 15:52

Hi Romano,
> I forgot the un-named func, the new version of hackme follow this message. <snip>
Another case of unnamed functions is VID action facets. Here I've adapted you code to work in that case, I don't know if there is another way to specify a /local in a Vid action facet, but I've used 'Use to get the same effect. otherwise, it's all your code. unview/all view layout [ button "Print me" [ use [err myself] [ error? err: disarm try [2 / 0] either word? myself: get in err 'where [ print ["My name is:" :myself] myself: get myself ] [ print "Not called using a word" ] print [ "My body is:" mold second :myself "^/My spec is:" mold third :myself ] ] ;use ] ; action ] ;layout Though it would be kinda neat if the Face was assigned to a variable and the code could print that variable name! Print-Button: Button "Print me" [...?code?...] Prints "My name is Print-Button/Action" But that's beyond my skills Sunanda.