Hi Rob,
you have the option of using
a: make block! form a
I imagine that make block! form a will run faster than load. Load tries to
bind words to the global context which make block! doesn't. Therefore you
get these two different behaviors:
>> do load {print "hi"}
hi
Here print is bound to the global context.
>> do make block! {print "hi"}
** Script Error: print is not defined in this context.
** Where: print "hi"
Here print has not been bound to the global context and therefore REBOL
doesn't know how to dereference it.
>> do bind make block! {print "hi"} 'print
hi
Here we explicitly bind the block returned by make block! to the global
context, which load does implicitly and therefore - once again - REBOL
knows how to dereference 'print.
Hope this helps,
Elan
At 06:00 PM 12/8/99 -0800, you wrote:
>Hello World!
>
>I've got a small problem, that I have fixed and wish to know if there is a
>faster way.
>
>I have a series of series with series inside... etc etc
>
>>>a: [ [ cow sheep dog ] [ pony cat [ pig horse [ cabbage] ] ] ]
>
>and I need to transform them like so...
>
>>>a: load form a
>== [cow sheep dog pony cat pig horse cabbage]
>
>Now I have a single series. This is the required result.
>
>I want to know; Is this is the best way to do it?
>
>As I have a feeling that "Load"ing after "form"ing could be quite processor
>intensive...
>
>Cheers...
>
>Rob Lancaster
>Development Engineer
>The OPEN Group
>
>The information contained in this message may be CONFIDENTIAL and is
>intended for the addressee only. Any unauthorised use, dissemination of the
>information, or copying of this message is prohibited. If you are not the
>addressee, please notify the sender immediately by return e-mail and delete
>this message. Thank you.
>
>
>
>