Is it possible to use classes in jscript, and where should I define them.
If I add a class definition to a jscript section I get syntax error. But I
can se that the class word is a reserved word in jscript. Do I have to
define my classes in js-files or is it something else?
Thanks, Henke!
"Henke" <henke...@hotmail.com> skrev i meddelandet
news:u9J%239l0tD...@TK2MSFTNGP12.phx.gbl...
Classic JScript implements ECMAScript edition 3, there class is a
reserved keyword but not one that is used in the language.
ECMAScript edition 3 doesn't know classes, instead it implements
prototypes for objects to define methods.
Check
http://devedge.netscape.com/library/manuals/2000/javascript/1.5/guide/
in particular the section 7 and 8.
And ask further questions in a group on JavaScript or JScript unrelated
to .NET.
--
Martin Honnen
http://JavaScript.FAQTs.com/