[Helma-user] __defineGetter__

Hannes Wallnoefer hannesw at gmail.com
Fri Mar 30 15:43:57 CEST 2007


2007/3/30, Michael Platzer <michael.platzer at knallgrau.at>:
>
>
> Or would you consider this to be hackish programming practice? What
> other usage scenarios come to your mind, when thinking of using
> __defineGetter__?
>

I think I will use these to implement persistent HopObjects in Helma
2. This should allow me to use vanilla JavaScript objects, because I
can use defineGetter/Setter to plug into the Helma persistence
framework implemented in Java.

One other very very interesting feature that has just been committed
to Rhino CVS is __noSuchMethod__:

https://bugzilla.mozilla.org/show_bug.cgi?id=368452

This allows you to implement a default handler when methods are
invoked on an object that do not exist. I'll update Helma's rhino to
include this today.

hannes


More information about the Helma-user mailing list