Subj : Re: [Rhino] can you add default getters/setters? To : Mike C. From : Igor Bukanov Date : Fri May 07 2004 11:43 pm Mike C. wrote: > "Igor Bukanov" wrote .... > >>But why do you need this feature? Do you want to implement ASP support in > > Java? > Yes I was looking for a mixed solution ASP - JSP and being able to share > session variables between them. So far I can do this using the MS ASP engine > and GNUJSP under IIS and MSJVM, and now I was thinking to move everything to > Java. Well, if "foo(bar) = something" happens is MS-specific scripts often, it makes sense to add it to Rhino to improve support for JScript. It would on the same scale as the implemented support in Rhino for JScript syntax sugar like function object.method() { ... } which is an alias for object.method = function () { ... } It would also cover an obscure deviation in Rhino from ECMAScript standard as "foo(bar) = something" should throw ReferenceError during script evaluation, not SyntaxError during compilation phase as it happens now. Regards, Igor .