Posted
about 18 years
ago
by
Benny Bottema <b(DOT)bottema(AT)planet(DOT)nl>
download Nibble
Finally, Nibble is ready to support native classes. So far, the scripting engine only supported (un)compiled Java classes, and class behavior through prototyping.
The new class system is a Java like but simpler class, that utilizes
... [More]
prototyping behind the scene. It provides some benefits over mere prototyping though that come natural to the classic class entity:
regular class notation, including the keywords class and extends
private and public methods or constructors
private and public and/or final properties
static or instance methods/properties
inheriting mechanism and polymorphism
strong typing
native class exampleclass Greeting {
private final greet;
public Greeting(final String greet) {
this.greet = greet;
};
public void greet(Object who) {
trace(greet who);
};
};
Read more
Prototype based class
Shadowed by the fresh support for native classes is a new keyword... require. The require directive indicates that the scriptfile with the require statement needs another file; with require you can indicate dependencies not unlike the import statement. For example, if you defined a class somewhere in nibblescript, but use it in other files, you want to make sure the class declaration is parsed before the scripts that use it (or you might get a data type unknown exception).
Read more
keyword require
[Less]
|
Posted
about 18 years
ago
by
Benny Bottema <b(DOT)bottema(AT)planet(DOT)nl>
download Nibble
Finally, Nibble is ready to support native classes. So far, the scripting engine only supported (un)compiled Java classes, and class behavior through prototyping.
The new class system is a Java like but simpler class, that utilizes
... [More]
prototyping behind the scene. It provides some benefits over mere prototyping though that come natural to the classic class entity:
regular class notation, including the keywords class and extends
private and public methods or constructors
private and public and/or final properties
static or instance methods/properties
inheriting mechanism and polymorphism
strong typing
native class exampleclass Greeting {
private final greet;
public Greeting(final String greet) {
this.greet = greet;
};
public void greet(Object who) {
trace(greet who);
};
};
Read more
Prototype based class
Shadowed by the fresh support for native classes is a new keyword... require. The require directive indicates that the scriptfile with the require statement needs another file; with require you can indicate dependencies not unlike the import statement. For example, if you defined a class somewhere in nibblescript, but use it in other files, you want to make sure the class declaration is parsed before the scripts that use it (or you might get a data type unknown exception).
Read more
keyword require
[Less]
|
Posted
about 18 years
ago
by
Benny Bottema <b(DOT)bottema(AT)planet(DOT)nl>
download Nibble
Finally, Nibble is ready to support native classes. So far, the scripting engine only supported (un)compiled Java classes, and class behavior through prototyping.
The new class system is a Java like but simpler class, that utilizes
... [More]
prototyping behind the scene. It provides some benefits over mere prototyping though that come natural to the classic class entity:
regular class notation, including the keywords class and extends
private and public methods or constructors
private and public and/or final properties
static or instance methods/properties
inheriting mechanism and polymorphism
strong typing
native class exampleclass Greeting {
private final greet;
public Greeting(final String greet) {
this.greet = greet;
};
public void greet(Object who) {
trace(greet who);
};
};
Read more
Prototype based class
Shadowed by the fresh support for native classes is a new keyword... require. The require directive indicates that the scriptfile with the require statement needs another file; with require you can indicate dependencies not unlike the import statement. For example, if you defined a class somewhere in nibblescript, but use it in other files, you want to make sure the class declaration is parsed before the scripts that use it (or you might get a data type unknown exception).
Read more
keyword require
[Less]
|
Posted
about 18 years
ago
by
Benny Bottema <b(DOT)bottema(AT)planet(DOT)nl>
download Nibble
Finally, Nibble is ready to support native classes. So far, the scripting engine only supported (un)compiled Java classes, and class behavior through prototyping.
The new class system is a Java like but simpler class, that utilizes
... [More]
prototyping behind the scene. It provides some benefits over mere prototyping though that come natural to the classic class entity:
regular class notation, including the keywords class and extends
private and public methods or constructors
private and public and/or final properties
static or instance methods/properties
inheriting mechanism and polymorphism
strong typing
native class exampleclass Greeting {
private final greet;
public Greeting(final String greet) {
this.greet = greet;
};
public void greet(Object who) {
trace(greet who);
};
};
Read more
Prototype based class
Shadowed by the fresh support for native classes is a new keyword... require. The require directive indicates that the scriptfile with the require statement needs another file; with require you can indicate dependencies not unlike the import statement. For example, if you defined a class somewhere in nibblescript, but use it in other files, you want to make sure the class declaration is parsed before the scripts that use it (or you might get a data type unknown exception).
Read more
keyword require
[Less]
|
Posted
about 18 years
ago
by
Benny Bottema <b(DOT)bottema(AT)planet(DOT)nl>
download Nibble
Finally, Nibble is ready to support native classes. So far, the scripting engine only supported (un)compiled Java classes, and class behavior through prototyping.
The new class system is a Java like but simpler class, that utilizes
... [More]
prototyping behind the scene. It provides some benefits over mere prototyping though that come natural to the classic class entity:
regular class notation, including the keywords class and extends
private and public methods or constructors
private and public and/or final properties
static or instance methods/properties
inheriting mechanism and polymorphism
strong typing
native class exampleclass Greeting {
private final greet;
public Greeting(final String greet) {
this.greet = greet;
};
public void greet(Object who) {
trace(greet who);
};
};
Read more
Prototype based class
Shadowed by the fresh support for native classes is a new keyword... require. The require directive indicates that the scriptfile with the require statement needs another file; with require you can indicate dependencies not unlike the import statement. For example, if you defined a class somewhere in nibblescript, but use it in other files, you want to make sure the class declaration is parsed before the scripts that use it (or you might get a data type unknown exception).
Read more
keyword require
[Less]
|
Posted
about 18 years
ago
by
Benny Bottema <b(DOT)bottema(AT)planet(DOT)nl>
download Nibble
Finally, Nibble is ready to support native classes. So far, the scripting engine only supported (un)compiled Java classes, and class behavior through prototyping.
The new class system is a Java like but simpler class, that utilizes
... [More]
prototyping behind the scene. It provides some benefits over mere prototyping though that come natural to the classic class entity:
regular class notation, including the keywords class and extends
private and public methods or constructors
private and public and/or final properties
static or instance methods/properties
inheriting mechanism and polymorphism
strong typing
native class exampleclass Greeting {
private final greet;
public Greeting(final String greet) {
this.greet = greet;
};
public void greet(Object who) {
trace(greet who);
};
};
Read more
Prototype based class
Shadowed by the fresh support for native classes is a new keyword... require. The require directive indicates that the scriptfile with the require statement needs another file; with require you can indicate dependencies not unlike the import statement. For example, if you defined a class somewhere in nibblescript, but use it in other files, you want to make sure the class declaration is parsed before the scripts that use it (or you might get a data type unknown exception).
Read more
keyword require
[Less]
|
Posted
about 18 years
ago
by
Benny Bottema <b(DOT)bottema(AT)planet(DOT)nl>
download Nibble
Finally, Nibble is ready to support native classes. So far, the scripting engine only supported (un)compiled Java classes, and class behavior through prototyping.
The new class system is a Java like but simpler class, that utilizes
... [More]
prototyping behind the scene. It provides some benefits over mere prototyping though that come natural to the classic class entity:
regular class notation, including the keywords class and extends
private and public methods or constructors
private and public and/or final properties
static or instance methods/properties
inheriting mechanism and polymorphism
strong typing
native class exampleclass Greeting {
private final greet;
public Greeting(final String greet) {
this.greet = greet;
};
public void greet(Object who) {
trace(greet who);
};
};
Read more
Prototype based class
Shadowed by the fresh support for native classes is a new keyword... require. The require directive indicates that the scriptfile with the require statement needs another file; with require you can indicate dependencies not unlike the import statement. For example, if you defined a class somewhere in nibblescript, but use it in other files, you want to make sure the class declaration is parsed before the scripts that use it (or you might get a data type unknown exception).
Read more
keyword require
[Less]
|
Posted
about 18 years
ago
by
Benny Bottema <b(DOT)bottema(AT)planet(DOT)nl>
download Nibble
Finally, Nibble is ready to support native classes. So far, the scripting engine only supported (un)compiled Java classes, and class behavior through prototyping.
The new class system is a Java like but simpler class, that utilizes
... [More]
prototyping behind the scene. It provides some benefits over mere prototyping though that come natural to the classic class entity:
regular class notation, including the keywords class and extends
private and public methods or constructors
private and public and/or final properties
static or instance methods/properties
inheriting mechanism and polymorphism
strong typing
native class exampleclass Greeting {
private final greet;
public Greeting(final String greet) {
this.greet = greet;
};
public void greet(Object who) {
trace(greet who);
};
};
Read more
Prototype based class
Shadowed by the fresh support for native classes is a new keyword... require. The require directive indicates that the scriptfile with the require statement needs another file; with require you can indicate dependencies not unlike the import statement. For example, if you defined a class somewhere in nibblescript, but use it in other files, you want to make sure the class declaration is parsed before the scripts that use it (or you might get a data type unknown exception).
Read more
keyword require
[Less]
|
Posted
about 18 years
ago
by
Benny Bottema <b(DOT)bottema(AT)planet(DOT)nl>
download Nibble
Finally, Nibble is ready to support native classes. So far, the scripting engine only supported (un)compiled Java classes, and class behavior through prototyping.
The new class system is a Java like but simpler class, that utilizes
... [More]
prototyping behind the scene. It provides some benefits over mere prototyping though that come natural to the classic class entity:
regular class notation, including the keywords class and extends
private and public methods or constructors
private and public and/or final properties
static or instance methods/properties
inheriting mechanism and polymorphism
strong typing
native class exampleclass Greeting {
private final greet;
public Greeting(final String greet) {
this.greet = greet;
};
public void greet(Object who) {
trace(greet who);
};
};
Read more
Prototype based class
Shadowed by the fresh support for native classes is a new keyword... require. The require directive indicates that the scriptfile with the require statement needs another file; with require you can indicate dependencies not unlike the import statement. For example, if you defined a class somewhere in nibblescript, but use it in other files, you want to make sure the class declaration is parsed before the scripts that use it (or you might get a data type unknown exception).
Read more
keyword require
[Less]
|
Posted
about 18 years
ago
by
Benny Bottema <b(DOT)bottema(AT)projectnibble(DOT)org>
download Nibble
Finally, Nibble is ready to support native classes. So far, the scripting engine only supported (un)compiled Java classes, and class behavior through prototyping.
The new class system is a Java like but simpler class, that utilizes
... [More]
prototyping behind the scene. It provides some benefits over mere prototyping though that come natural to the classic class entity:
regular class notation, including the keywords class and extends
private and public methods or constructors
private and public and/or final properties
static or instance methods/properties
inheriting mechanism and polymorphism
strong typing
native class exampleclass Greeting {
private final greet;
public Greeting(final String greet) {
this.greet = greet;
};
public void greet(Object who) {
trace(greet + who);
};
};
Read more
Prototype based class
Shadowed by the fresh support for native classes is a new keyword... require. The require directive indicates that the scriptfile with the require statement needs another file; with require you can indicate dependencies not unlike the import statement. For example, if you defined a class somewhere in nibblescript, but use it in other files, you want to make sure the class declaration is parsed before the scripts that use it (or you might get a data type unknown exception).
Read more
keyword require
[Less]
|