[Javascript] Try and Catch Question
Troy III Ajnej
trojani2000 at hotmail.com
Tue Mar 10 09:28:14 CDT 2009
> Benjamin Hawkes-Lewis
> From: bhawkeslewis at googlemail.com
Hello Benjamin,
thanks for your reply.
>
> On 8/3/09 11:29, Troy III Ajnej wrote:
> > Absolutely everything that requires paranethesis is a function.
>
> That's not true according to the ECMAScript specification.
>
ECMAScript is not a brower Script.
In addition:The try\catch()\finally algo is still, not a part of ECMA.
(Although the "try" keyword was listed as reserved in ECMA to)
>
> "try" is a statement. "catch" is a clause in that statement.
>
Naturally.
>
> All "functions" in ECMAScript are objects. "catch" is not an object.
>
False...
Every object is not a function and not all (buillt in) functions may be
objects.
Paracoxically, event the Object object, is a pure function! Or may I
say: a Function function or a function Object, or...
alert(Object);
.::the alert content::.
function Object() {
[native code]
}
As you can see, Objects are functions itself.
Even the Function is a function.
alert(Function);
will result in:
function Function(){[native code]}
(are we entering into some kind of a "name:notion" loop?)
"Math" is an object, .max(); .min() is not! These are functions:
alert(Math.max);
alert(Math.min);//etc...
The "document.getElementById()" is most probably considered everything
else but function. Well, function it is.
alert(document.getElementById)
.
.
.
Regards
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Troy III
progressive art enterprise
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_________________________________________________________________
Hotmail® is up to 70% faster. Now good news travels really fast.
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_70faster_032009
More information about the Javascript
mailing list