ejs name space

tridge at samba.org tridge at samba.org
Sun Jul 17 23:53:41 GMT 2005


Jelmer,

 > I'm not sure how similar JavaScript is supposed to be to "real" java, 

The name is quite mis-leading. js is not really related to java at
all. 

 > foo = new Samba.LDB.Connection("tdb://foo")

Simo and I ended up doing it this way:

 var ldb = ldb_init();

 ok = ldb.connect("tdb://test.ldb");
 ok = ldb.delete("cn=test,cn=xxy");

 var sys = sys_init();
 ok = sys.unlink("localfile.dat");

etc. I've converted our generated rpc code to use the same type of
system. 

One thing I might add is the ability to specify an existing object in
the XXX_init() call, in which case the functions and variables would
be added to that object rather than created in a new object. So if you
want to make both LSA and SAMR calls, you could do it from one object
rather than having to have two.

Either way, the namespace issue is now gone, as each subsystem we add
only uses up one XXX_init() entry in the namespace.

Cheers, Tridge


More information about the samba-technical mailing list