This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Defining a class globally can be done like this: | |
class Foo | |
constructor: (@name) -> | |
this.Foo = Foo; | |
# Or like this... | |
this.Foo = class Foo | |
constructor: (@name) -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Allocation for Array | |
ArrayObject* ArrayClass::newarray(Atom* argv, int argc) | |
{ | |
ArrayObject *inst = newArray(argc); | |
for (uint32 i=0; i<uint32(argc); i++) { | |
inst->setUintProperty(i, argv[i]); | |
} | |
NewerOlder