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

[REBOL] make <object-type> append

From: gjones05::mail::orion::org at: 14-Jun-2001 6:59

In working on the http scheme and transparent cookie management, I've been using construct that RT uses in forging headers. I can understand what the end result is, but I do not really *understand* the construct. Here is an example: account: make object! [ name: make string! 100 ] account: make account [ balance: $2000 ] This sequence creates: make object! [ name: "" balance: $2000.00 ] Now for the make -type- append version: account: make account append [ phone: make issue! 10] [state: make string! 2] Adds two fields to the object: make object! [ name: "" balance: $2000.00 phone: # state: "" ] The second block following append may be empty but must be present. Using make in this way seems to be equivalent to: account: make object! [ name: make string! 100 ] account: make account [ balance: $2000 ] account: make account [ phone: make issue! 10 state: make string! 2 ] Can someone help me to understand what, why, and/or how append is being used in this context? I could find no documentation that addresses this point. Thanks. --Scott Jones