Saturday
Feb062010
"If a feature is not documented, it does not exist"
Saturday, February 6, 2010 at 12:31PM The documentation for Mascara is not yet completely perfect, but now at least we have a list of keywords!
Olav | Comments Off |
Reader Comments (2)
Are packages implemented? The link redirects to the main documentation page, which leads me to think they aren't. Will they be, soon? I think they are greatly needed in order to write modular code. Is there currently any way to do something like:
class Foo::Bar {
...
}
var bar = new Foo::Bar;
In other words, is there any way to place classes within namespaces or packages?
Thanks!
@AJG: Yes, packages are supported. You have to declare the members inside a
packageblock:package foo {
class Bar {
...
}
}
var bar = new foo::Bar;
// or:
import foo;
var bar = new Bar;
See more: http://www.mascaraengine.com/doc/package