At 6:38 PM +0200 4/28/04, Jens Rieks wrote:
On Wednesday 28 April 2004 17:17, Dan Sugalski wrote:
    1 - no good, try the next entry in the array
    0 - Good, done
    -1 - good, try the next entry in the array anyway
    exception - something went wrong

 The string parameter is the unqualified name of the library to load.
 The parameter is explicitly writable so filter entries can mess with
 it if they want.
Then another code should be added to indicate that the library name has been
rewritten and that search should be restarted..?
In what case will a handler return -1?

The handler returns -1 in those cases where it's rewritten the library name. It'll also return that in the case where it may have done something successful (such as log the load request) but wants the load to continue anyway.


Arguably no loader in the list ever has to return a -1 result, as they could still do their thing and return a 1, but I figured it'd be useful to have a way for loaders to indicate they did something but that the search wasn't over.
--
Dan


--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to