[Prev][Next][Index][Thread]

# Re: Wierd Verb Stuff - Need Help!

- Date: Sat, 27 Jan 1996 12:56:57 PST
- From:
- Content-Type: text
- Newsgroups: local.moo
- Organization: Where Stormnet meets the Internet
- References: <Pine.A32.3.91.960127133127.17956B-100000@freenet.edmonton.ab.ca>

    In article <Pine.A32.3.91.960127133127.17956B-100000@freenet.edmonton.ab.ca>,
    Chris Jones  <cjones@freenet.edmonton.ab.ca> wrote:
    >
    >	Hi, everyone.  I'm trying to setup a verb on an object which
    >works like this:
    >[Verb code may not work; making this off the top of my head]
    >cmd = "foo";
    >player:cmd();
    >[Could this be setup so that the second line will execute player:foo(),
    >and then if cmd is changed (say to "bar"), that it would execute
    >player:bar()?]

    cmd = "foo";
    player:(cmd)();

    ... will do quite nicely.

    If you haven't already, get the LambdaMOO Programmer's Guide from
    parcftp.xerox.com:/pub/MOO.

    	-hpa
    --
    PGP public key available - finger hpa@terminus.storm.net
    "The earth is but one country, and mankind its citizens."  --  Bahá'u'lláh
    GE/CS 3.1 d- s-:- a- C++++ ULIS++++$ P+++ L++++>+++++ E++ W++ N++ o+ K
    w--- O@ M V- PGP+ t+ 5++ X? R@ tv- b++ DI++++ D++(+) G e++ h- r-- y-

References:

- Wierd Verb Stuff - Need Help!

- From: Chris Jones <cjones@freenet.edmonton.ab.ca>

- Prev: RE: Wierd Verb Stuff - Need Help!
- Next: Re: Wierd Verb Stuff - Need Help!
- Index: MOO-cows
- Thread: MOO-cows

Home | Subject Index | Thread Index