Subj : Re: Enumerating standard class properties & methods To : netscape.public.mozilla.jseng From : "Sterling Bates" Date : Wed Dec 17 2003 03:16 pm "Brendan Eich" wrote in message news:3FE0D0D6.4010409@meer.net... > That's where you could return an empty array and be conformant with > ECMA-262 Editions 1-3. Why do more? Well, 33% of my current userbase (*cough*1 user*cough*) will need to know what those methods are. Being as accomodating as I can (it benefits me as much as everyone else) I can do one of two things: 1. Provide a ClassType method which returns an enumerated value for Date, Number, Array, etc. 2. Return the list of methods as a transparent operation to the client of the bridge. Personally I prefer #2. I'd rather not force all clients to hardcode the method lists individually, when it can be done centrally. OTOH, with #1 I can claim some level of conformance with the spec -- probably safer long term. Depends on whether I'm a non-conformist :) Thanks Brendan, Sterling .