No it isn't. The "set" function in the Foo object is exactly the `= operator, and the "get" function is the corresponding read operator (I don't remember if we gave it a name, possibly the cast lfun was used somehow). This is Agehall's C# code in Pike syntax, using the imaginary `= operator, and an equally imaginary `get operator.
static int foo; object Foo = class { int `get() { return foo; } void `=(mixed value) { foo = value; } }();
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2003-12-21 17:48: Subject: Re: C#-like properties
Ah, that one. This suggestion is different and doesn't have the hairy semantic problems that one has.
/ Martin Stjernholm, Roxen IS