Re: Cookie problem! Getting error when passing the expire date.
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: Cookie problem! Getting error when passing the expire date.

From: Thomas 'PointedEars' Lahn <PointedEars@web.de>
Date: Sun Apr 30 2006 - 23:01:13 CEST

Richard Cornford wrote:

> VK wrote:
>> btw and AFAIK Number is supposed to be used as constructor,
>> not as a method.
>
> One of the main things you would benefit from learning is an
> appreciation of how very little you actually do know. See ECMA 262, 3rd
> Ed. Section 15.7.1 "The Number Constructor Called as a Function", and
> appreciate that a function should not be spoken of as a 'method' unless
> it is called as a member of an object.

As for the former, I concur. As for the latter, one should keep in mind
that every function is indeed a method (ES3 Final, 4.3.3) in ECMAScript
implementations -- if its owner is (and therefore the function is called as
a member of) only the Variable Object of the execution context (the Global
Object for globally declared functions, and built-in top-level functions
such as Number(); see ES3 Final, subsection 10.1.5). However, to
distinguish between constructors and methods is typically VK again; every
constructor is a function, hence it is also a method.

Regards,
PointedEars

-- 
There are two possibilities: Either we are alone in the
universe or we are not. Both are equally terrifying.
  -- Arthur C. Clarke
Received on Mon May 1 05:28:13 2006