[Opensim-dev] Place for osFoo functions that only work with certain languages
Sean Dague
sdague at gmail.com
Tue Sep 9 12:33:48 UTC 2008
I've got some script support for JSON request parsing from one of our
folks, but it returns a hashtable, so is really only suitable for C# in
it's current form. As we all know, LSL doesn't do complex data
structures in any real way.
I occurs to me that we'll get more of these things over time, and am
curious about how to integrate this properly.
Some options seem to be:
1) have it only work on some languages (possibly a way to mark things as
such).
2) Support some kind of opaque typing so we could do:
obj foo = osFoo(...);
string val = osFooGet(foo, "mykey");
That would change LSL, but let us to support something like this.
3) Force the function to keep it's own global state so that:
string token = osFoo();
string val = osFooGet(token, "mykey");
osFooReap(token);
3 seems to be the biggest pain, so I would vote against that. 1 is
easy, but I'm not sure what others think about it.
Opinions welcomed. I'd love to get these bits in as I think they are
useful to lots of people.
-Sean
--
Sean Dague / Neas Bade
sdague at gmail.com
http://dague.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://opensimulator.org/pipermail/opensim-dev/attachments/20080909/835420f1/attachment-0001.pgp>
More information about the Opensim-dev
mailing list