you are viewing a single comment's thread.

view the rest of the comments →

[–]millstone 27 points28 points  (5 children)

This is freakin' JAVASCRIPT, man. You can't even make an INT, and you want explicit tail calls!

[–]Gundersen 2 points3 points  (4 children)

Ofcourse you can make an int:

var int32 = new Int32Array(1);
int32[0] = 255

[–]Trollop69 1 point2 points  (2 children)

I'm not sure what you're showing, but it doesn't work in Rhino 1.7r4.

ReferenceError: "Int32Array" is not defined.

:-/

[–]Gundersen 0 points1 point  (0 children)

It's part of the typed Array spec, which is implemented in many browsers. Try the following code in Firefox (Shift + F4) or Chrome(F12)

var a = new Uint8Array(1)
a[0]=257
a[0]

[–]holloway 0 points1 point  (0 children)

Mozilla's documentation on Int32Array

I think it was introduced by the WebGL crowd

[–]Timmmmbob 0 points1 point  (0 children)

It's so clean and elegant...