Subj : Re: [Rhino] can you add default getters/setters? To : Mike C. From : Igor Bukanov Date : Sat May 08 2004 11:50 am Mike C. wrote: > "Igor Bukanov" wrote > >>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 >> .... > > It does happen often in MS-specific scripts, take the Session example. If > one wants to share the same code base between JScript and Rhino, it is not > possible since there are no setter methods for Value in Session, only > propput or propputref, that cannot be called directly from scripting > languages. So under JScript I can use only > Session("foo") = "bar" > or manually expand the default setter, as > Session.Value("foo") = "bar" > But couould you use Session["foo"] = "bar" or even Session.foo = "bar" in ASP pages as well? If yes, then at least you have a workaround. Regards, Igor .