Subj : new operator and call operator To : netscape.public.mozilla.jseng From : =?ISO-8859-1?Q?Georg_Maa=DF?= Date : Wed Mar 26 2003 07:28 am Selection(); ~~ That is a call operator. new Selection; ~~~ Here is a new operator. new Selection(); ~~ But what ist that? Is that a call operator to be used for an internal call of the constructor function inside the new operation, or is that a part of a second variation of the new operator? Are there two new operators? new FUNCTION and new FUNCTION (OPERANDLIST) where OPERANDLIST is used as arguments for the constructor function? I ask this for correctly documenting the language. Should I speak about two new operator variation or should I speak about a pure new operator and a combination of new operator and call operator? Experiments with Selection in the Mozilla browser let me think it might be better to speak about two new operator variations, because Selection(); results in an error message, where new Selection(); and also new Selection; results in an exception. This gives me the idea, that there is no "call operator" in the second sample but the () must be a part of the new operator, which causes me to say, that there are two new operators, one with () and an other without, both doing the same. .