On 2009-07-25 07:00:32 -0400, Michel Fortin <[email protected]> said:
namespace foo {
int opGet(); // getter
void opAssign(int); // setter
...
int opIndex(int); // foo[1];
void opAddAssign(int); / foo += 1;
void invert(); // special function attached to property
}
I just want to clarify that I used "namespace" as a keyword in this
example to better illustrate the fact that there is no more magic or
special syntax under the hood than with a C++ namespace. I'm not
actually suggesting we use a "namespace" keyword, I think it'd be
confusing.
--
Michel Fortin
[email protected]
http://michelf.com/