MOO-cows Mailing List Archive
Re: verb calling
Date: Sun, 25 Feb 1996 18:57:19 PST
Content-Type: text/plain; charset="us-ascii"
>Sorry to bother you all again, but another question came up for me. I have
>a verb that goes along the lines of this (there might be typeos in this and
>may not compile, it is just an example)
>verbname = "next prev again quit"
>text = verb;
>and $value will have verbs named "next" "prev" "again" and "quit"
>What I want to do, is somehow call one of the verbs on $value by using the
>name used to call the first verb.
>I know the above example doesn't work, cause I have tried it....is there
>anyway to do this?
Try putting it in parentheses... $value:(text)().. or you could just skip
the first step and use $value:(verb)().. if you also wanted to pass the
arguments around you could use $value:(verb)(@args).
>Thanks for all your help
>Four Seasons MOO
>Role Playing Game &
Subject Index |