Top |
Creating JavaScript classesCreating JavaScript classes — Dealing with Seed class definitions and constructors |
enum | SeedPropertyAttributes |
enum | SeedClassAttributes |
typedef | SeedClass |
#define | seed_empty_class |
Defining new Seed classes allows for implementing more complex behavior than possible with the traditional JavaScript object system and default class. When writing Seed modules, it is often the best pattern to define many of your types through classes and static functions/value. Please note that inside the finalize callback of a class, it is not legal to call any method requiring a SeedContext (with the exception of protect/unprotect, though it is not guaranteed this will continue to work with future versions of JSCore).
SeedObject seed_make_constructor (SeedContext ctx
,SeedClass klass
,SeedObjectCallAsConstructorCallback constructor
);
ctx |
A SeedContext. |
|
constructor |
The JSObjectCallAsConstructorCallback function to call when the constructor is invoked with 'new'. |