Re: integers and arrays in Java - how?



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/
.



Relevant Pages

  • Re: FAQ suggestion: Does JavaScript have classes and instances?
    ... language nor the interpreter have any feature called a "class". ... Instead, Javascript objects, within the runtime ...
    (comp.lang.javascript)
  • Re: Semicolons and the do..while statement
    ... It also causes trouble when someone is learning the language. ... JavaScript or by me. ...
    (comp.lang.javascript)
  • Re: application architecture in asp.net
    ... So, if I'm to summarize, you're saying that in reality each language ... OR there may be a performance benefit to VB if you need one of *its* VB- ... from each language's feature set. ... JavaScript" opinion but that's really a different discussion; ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Implicit object constructor misinterpretation
    ... specified for the language that is being parsed. ... sub-set of the syntax for object literals. ... document that will teach anyone how to program with javascript. ... Consider the issue in your OP; you can speculate about "broken switch-case" or "not a constructor but a block of statements", but an examination of the spec shows that the observed behaviour corresponds with the specified behaviour, and explains the specified behaviour. ...
    (comp.lang.javascript)
  • Re: Code Guidelines
    ... The language lets you do a lot of things. ... is the feature which was specially designed. ... possible to dynamically augment any other user-defined objects (but ... functionality directly on object – ...
    (comp.lang.javascript)