[sldev] New Scripting Functions
Jason Giglio
gigstaggart at gmail.com
Fri Sep 28 11:14:33 PDT 2007
Dale Glass wrote:
> On llRequestAgentKey I'm not sure what "blocking dataserver = error
> detection" exactly means, but error detection is a must for that as well
> as any other dataserver functions -- there must be a clear difference
> between a request failing because what's being requested doesn't exist,
Right well I think you've pretty much gotten the idea.
Here's the deal:
the_key = llRequestAgentKey("Gigs Taggart");
This is a blocking call, the issue is when something goes wrong... does
it have a time out? How do you communicate the error?
***Versus***
llRequestAgentKey("Gigs Taggart");
dataserver(stuff)
{
the key = stuff
}
The way that notecards and agent information is done now.
Blocking calls are a lot nicer in terms of program flow and ease of use,
but they have the drawbacks I mentioned above in terms of catching when
bad things happen.
It was suggested that something like llGetLastError() could be used.
-Jason
More information about the SLDev
mailing list