Subj : Re: Preventing 'new' To : netscape.public.mozilla.jseng From : Brendan Eich Date : Fri Mar 25 2005 03:14 pm Jamie Nordmeyer wrote: > However, now that I"m thinking about it, I suppose something like 'var x = > new RegistryKey(HKEY_LOCAL_MACHINE, "\\Software", REG_CREATE | REG_OPEN);' > could work. That's much more in the normal style of the language and its host objects. Sometimes you want a restricted pattern because what is going on is not necessarily construction (e.g., window.open, which may find an existing window). Here, you're always creating or re-creating the key, I take it, so new fits better. /be .