[REBOL] Re: [REBOL]
From: ryanc:iesco-dms at: 28-Jun-2001 10:41
There is a couple of ways to do this, all pretty straight forward. First off
though, I am not sure what you mean by "variable blocks." If my answer is not
sufficient, you might elaborate on that. Anyhow, here is my shot:
>> ; as an object!
>> lives: make object! [cat: 9 dog: 2 mouse: 12 amiga: 256]
>> save/header %lives.r lives [] ; saving it with a header makes it 'do-able
>> lives/cat: 0
== 0
>> lives: do %lives.r ; without a header you would use lives: do load %lives
>> lives/cat
== 9
>> read %lives.r
== {REBOL []
make object! [
cat: 9
dog: 2
mouse: 12
amiga: 256
]}
>>
Eames, Lance
wrote:
> I'm very new to Rebol, but it's quickly becoming by language of choice. I'm
> finding it excellent for prototyping.
>
> I'm having difficulty using variable blocks read from a file in 'view'. I'd
> appreciate any pointers. Thanks.
> --
> To unsubscribe from this list, please send an email to
> [rebol-request--rebol--com] with "unsubscribe" in the
> subject, without the quotes.
--
Ryan Cole
Programmer Analyst
www.iesco-dms.com
707-468-5400