Subj : Re: Class properties To : netscape.public.mozilla.jseng From : Martin Honnen Date : Thu Oct 28 2004 08:59 pm Niklas Lindquist wrote: > Is it at all possible to create class properties (as oppose to instance > properties). > What I would like to achieve is something similar to C enums to use as > parameters for certain functions. > > Example: > var s = new Stream; > s.open(Stream.modeOut); function Stream () { } Stream.modeOut = 42; can certainly be done in JavaScript. -- Martin Honnen http://JavaScript.FAQTs.com/ .