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

Composing a function from string

 [1/3] from: tim:johnsons-web at: 1-Dec-2001 8:04


Hello All: Not long ago, I saw a short thread that mentioned that one could dynamically create a rebol function from a string. Does anyone have information on that? Either the thread or some ideas? Thanks Tim

 [2/3] from: ptretter::charter::net at: 1-Dec-2001 11:47


'Do can perform that.
>> hold: "myfunc: func [x][print x]"
== "myfunc: func [x][print x]"
>> do hold >> myfunc "hello"
hello
>>
Paul Tretter

 [3/3] from: tim:johnsons-web at: 1-Dec-2001 17:54


On Sat, Dec 01, 2001 at 11:47:41AM -0600, Paul Tretter wrote:
> 'Do can perform that. > >> hold: "myfunc: func [x][print x]"
<<quoted lines omitted: 4>>
> >> > Paul Tretter
Hi Paul: Thank you. (Should have typed 'help do) for some reason had been assuming 'do just worked on a block. Perhaps I'm having false memories here (its possible), but it seemed that there was different implementation or solution to this also, in the thread that I think I remember. Regards Tim
> -----Original Message----- > From: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]On Behalf Of
<<quoted lines omitted: 18>>
> [rebol-request--rebol--com] with "unsubscribe" in the > subject, without the quotes.
-- Tim Johnson <[tim--johnsons-web--com]> http://www.johnsons-web.com

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted