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

[REBOL] basics: meaning and uses of make object! vs. context

From: jason::cunliffe::verizon::net at: 10-Jun-2002 10:35

Hi I looked at Ladislav's amazing article but it's still a bit beyond me .. Please can anyone provide an introductory explanation of the difference between make object! and "context"? ..hopefully then I can get back to studying Ladislav's essay. These both appear to do the same thing: o: make object! [ name: "jason" email: [jasonic--nomadics--org] sendme: func [message] [send email message] ] o: context [ name: "jason" email: [jasonic--nomadics--org] sendme: func [message] [send email message] ]
>> o/name
== "jason"
>> o/email
== [jasonic--nomadics--org]
>> o/sendme "hello"
Q1: Are they different, and if so How? Q2: Why/when/what determines which form to use..? thanks ./Jason