MOO-cows Mailing List Archive


RE: Efficiency of try..endtry


Can anyone give me an idea of which of these code segments will be more
efficient to try to call a verb that I do not know exists?


Version A is likely to be much more efficient -- it doesn't have to create 
the entire list of verbs, which is not accessable to you in any case if the 
object is !r (wizperms notwithstanding)

However, if at any point in the execution of this verb or any verb that verb 
calls, E_VERBNF is raised for any other reason, it will be treated as if 
that verb did not exist and will fall into the error-handler.   This may not 
be what you want.

Home | Subject Index | Thread Index