[REBOL] Set-words and refinements
From: brett:codeconscious at: 14-Nov-2000 21:26
In the "add/subtract with dates" thread Jim Goodnow II suggested the
following
date/month: date/month + 1
I must have my eyes closed, or a part of my brain just filtered away this
for me so far - it was quite a suprise.
In Delphi I'd think "oh I see, date is a class with a property called month
which when set invokes a method to change the date and when accessed invokes
a method to return the month".
But this is Rebol and while I understand that date is a native datatype and
thus perhaps treated specially by the interpreter I was still suprised.
Two questions
1) Any more of these?!
2) Can I build an object that behaves like that? And if not, then RT, could
I could I please please..? It looks kinda cool.
Brett
--
>> my-rebol-stuff
== http://www.codeconscious.com/