mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-02 15:15:23 +00:00
1a4b241ed2
unix now has an autoconf based make system. currently the new make system only makes parser related files, back end stuff to be added soon. mac and windows makesystems will be checked in next. parser.cpp has been factored into token.*, lexer.*, and parser.* utilities.cpp has been factored into formatter.*, exception.*, mem.*, strings.*,ds.h, stlcfg.h, and algo.h
29 lines
504 B
JavaScript
29 lines
504 B
JavaScript
class A {
|
|
static var x = 0;
|
|
|
|
static function f()
|
|
{
|
|
return A.x++;
|
|
}
|
|
}
|
|
|
|
class Point3D {
|
|
var x = 0, y = 0, z = 0;
|
|
|
|
function set(x, y, z) {
|
|
this.x = x;
|
|
this.y = y;
|
|
this.z = z;
|
|
return this;
|
|
}
|
|
|
|
function setX(x) { this.x = x; }
|
|
function getX() { return this.x; }
|
|
|
|
function setY(y) { this.y = y; }
|
|
function getY() { return this.y; }
|
|
|
|
function setZ(z) { this.z = z; }
|
|
function getZ() { return this.z; }
|
|
}
|