On Dec 30, 1:50 pm, Norris Boyd <[EMAIL PROTECTED]> wrote: > On Dec 21, 9:23 pm, [EMAIL PROTECTED] wrote: > > > Hi, > > > I'm not sure if there will be much interest in this or not... I've been > > experimenting with adding a metaobject protocol to JavaScript, and I > > modified Rhino to implement it. I've put up a page that gives an > > overview: > > > http://www.bias2build.com/thesis/javascript_mop_expanded.html > > > The cool thing is that it was relatively simple to put together -- > > JavaScript's design seems to let you do a lot with pretty minimal changes. > > I've been pleased with the result so far. > > > Feedback is welcome. Am I missing any big pieces in what a MOP should > > cover? Does this seem straightforward to use? I appreciate any insights. > > > Thanks, and happy holidays. > > > --Tom > > This is interesting, thanks... I don't know if you know about it, but > Rhino now has __noSuchMethod__, which is an analog to method_missing: > > Rhino 1.7 release 1 Pre 2007 12 26 > js> obj = { __noSuchMethod__: function f(name, args) > { print(name,args); } } > [object Object] > js> obj.fooBar(3,4) > fooBar 3,4 > > --N
Apologies... I see from your you do know about this from your link. Just missed it before. --N _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
