it looks like FF2 fixed the with-statement handling in JavaScript,
the issue described earlier does not occur anymore.
So, I am thinking of adding support for the following in jsolait:
e.g of a module source file
mod.foobar=function(...){
...
}
mod.test=function(...){
foobar();
}
the magic is that 'mod.' is only used to define objects that can be
imported by other modules. Inside the module itself these objects will
look like local objects declared with 'var'. This should make things a
bit more comfortable to write.
I will do some further investigation if there are any issues using
this approach.
Comments are appreciated.
Jan