MOO-cows Mailing List Archive


Use for $call_verb

I just thought of a really cool thing that could be done if there existed a
server->database interface for calling verbs.

The idea would be that a verb call: foo:bar(args) would attempt to call
#0:call_verb(foo, "bar", {@args}) before making the call by itself.  If the
verb on #0 did not exist (or was -x), it would proceed with the call normally,
if the the built-in raised an error, that would be passed on to the calling
program, otherwise, the server would pass back whatever call_verb returned to
the caller.

If NO type checking were done in advance of call_verb, it would be possible to
do something like this:


This would call $call_verb({2, 1, 4, 3}, "sort", {}), which would call
$list_utils:sort({2, 1, 4, 3}), which returns {1,2,3,4} to $call_verb, which
passes that back to the player.  This seems like a very cool thing to do,



Home | Subject Index | Thread Index