Subj : Re: Enumerating standard class properties & methods To : Sterling Bates From : Brendan Eich Date : Wed Dec 17 2003 12:54 pm Sterling Bates wrote: > "Brendan Eich" wrote in message > news:3FE0BFAD.9020100@meer.net... > >>So, you'll hardcode all the properties of standard classes and their >>prototypes? >> >>Why do this? JS does not. Its reflection via your bridge in O.P. >>shouldn't either, IMO. > > > I agree that hardcoding is not always a good thing, but ruling it out brings > me back to square one. I'm not aware of another option to dynamically > discover the properties and methods of standard classes. If you don't need to enumerate them (JS does not), then why do you not simply look up any name on demand, and find whether it refers to a property of the global object (etc. down the object "tree" or graph)? /be .