MOO-cows Mailing List Archive


Built in verbs.

I'm using the $bf_FOO ability of the 1.8.p4 server, and due to a problem 
have had to write a verb 40 lines long which should have taken 4.

In a verb, you can call other verbs like this:
verb = "FOO";

But this does not work with built in functions, -ie
@verb #0:"bf_foo1 bf_foo2" tnt rxd
verb = verb[4..length(verb)];
return (verb)(@args);

The solution I used was a nice long chain of elseif statements, as I did 
not want to make seperate verbs for each when they called basically the 
same syntax.

Does anybody know of a better solution?



Home | Subject Index | Thread Index