DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
|
ActionScript |
JavaScript + Closure annotation |
Notes |
|---|---|---|---|
int |
int(value) |
int(value) |
We implement utility method in the global namespace: function int(value) {
return value >> 0;
}
|
trace |
trace(value) |
trace(value) |
We implement utility method in the global namespace: function trace(value) {
try {
if (console && console.log) {
console.log(value);
}
} catch (e) {
// ignore; at least we tried ;-)
}
}
|
uint |
uint(value) |
uint(value) |
We implement utility method in the global namespace: function uint(value) {
return value >>> 0;
}
|
Vector |
result = Vector.<type>(valueArray); |
result = /** @type {Array.<type>} */ valueArray;
|
Let the Closure Compiler handle (check) what is basically a type cast from general Array to a Typed Array. |