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

[REBOL] Re: Dynamically Modifying objects!

From: antonr:iinet:au at: 23-Feb-2003 14:03

Ed, 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"] etc. Anton.