[REBOL] Re: Dynamically Modifying objects!
From: edanaii::cox::net at: 23-Feb-2003 8:03
>As I found out recently, you can use the path
>notation to reference into blocks as well as into objects.
>It's not as fast, but blocks are more flexible,
>and allow you to add and remove elements, which is
>what you want:
> >> blk: [name "anton" language "rebol"]
> == [name "anton" language "rebol"]
> >> blk/name
> == "anton"
> >> blk/language
> == "rebol"
> >> append blk [country "australia"]
> == [name "anton" language "rebol" country "australia"]
Well, I'll be dipped... :) I didn't know you could do that.
Thanks for the tip.
Sincerely, | The problems of two little people don't amount to
Ed Dana | a hill of beans in this crazy mixed-up world! But
Software Developer | this is OUR hill, and these are OUR beans!
1Ghz Athlon Amiga | -- Leslie Neilson, Naked Gun (Casablanca).