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

[REBOL] Re: Block parsing - function! datatype

From: santilli:gabriele:gmai:l at: 21-Jul-2007 12:27

2007/7/21, Peter Wood <pwawood-gmail.com>:
> When parsing a block for a function! value, I'm finding the value that > I'm trying to set gets set to [second function] value rather than the > function: > > >> a: func [] [12.34] > >> parse [:a] [set b function!] > == false
Notice the FALSE here! The block you are parsing contains a get-word not a function.
>> f: func [a] [print a] >> parse reduce [:f] [set g function!]
== true
>> :g >> source g
g: func [a][print a] HTH, Gabriele.