Subj : Re: SM typeof for extensions To : Shanti Rao From : Brendan Eich Date : Thu Sep 09 2004 11:40 am Shanti Rao wrote: > Howdy, > > If I add a class to SM, how do I have the tyopeof operator return > something other than "object"? > > js>var s = new ActiveX("SAPI.SpVoice"); > js>typeof s > object > > I want it to say "ActiveX" instead of "object". Is this some evil MS-ism? With E4X, there may be a general way to change the result of typeof. Right now, you'll have to hack jsapi.c. Gross. typeof and the distinction between types and object classes that wrap the primitive types are the biggest botches I regret in the original language design. /be .