Re: integers and arrays in Java - how?
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: integers and arrays in Java - how?

From: Randy Webb <HikksNotAtHome@aol.com>
Date: Fri Mar 31 2006 - 18:12:58 CEST

Robert Baer said the following on 3/31/2006 6:28 AM:
> Randy Webb wrote:
>
>> Thomas 'PointedEars' Lahn said the following on 3/30/2006 12:42 PM:
>>
>>> RobG wrote:
>>>
>>>> Robert Baer wrote:
>>>>
>>>>> But "int" not only does not work, it also prevents reading X and
>>>>> Y coordinates of the mouse.
>>>>
>>>> There is no 'int' type in JavaScript. Variables are typeless, their
>>>> values have types.
>>>
>>>
>>> Not quite true. There is an `int' type, and variables can be strictly
>>> typed, in JavaScript 2.0. However, that is not implemented in a browser
>>> yet.
>>
>>
>> And as such, even mentioning it is useless other than a waste of
>> bandwidth and time for anybody who reads it.
>>
> Incorrect; the info explained why i had so much trouble.

You had trouble because you were using, or attempting to use, a feature
that is not part of the language. Not because of a feature that might be
in a future release of the language unless you were reading a draft copy
of JavaScript2.0 in which case you should have known it wasn't in use yet.

-- 
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Received on Mon May 1 04:34:24 2006