you need to use load...  For example (the code I tried to test this theory):
  >> a: load ask "Func -> "
  Func -> print 42 print "foo" return 69
  == [print 42 print "foo" return 69]
  >> b: func [] a
  >> b
  42
  foo
  == 69

hope this helps...

   Cal Dixon ([EMAIL PROTECTED])

-><-

>From: [EMAIL PROTECTED]
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: [REBOL] Getting a function body block from standard input
>Date: Wed, 22 Mar 2000 23:34:02 -0500
>
>I would like to get a block from "ask" and pass it as a function body
>block to "func".
>
>I've tried something like
>
>       print y: make block! ask ["Enter your function "]
>
>       yfunction: func [x] [y]
>
>but this and other variations doesn't seem to work.
>I'm new to REBOL. Could someone point me in the right direction?
>
>TIA, AP [:{)
>

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

Reply via email to