MOO-cows Mailing List Archive

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

Re: Wierd Verb Stuff - Need Help!



On Sat, 27 Jan 1996, Chris Jones wrote:

> [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()?]

Try this...

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

--Nate

------how original-a signature at the end of every email message------
Nate Massey    G -d+ H s+:- !g(+) p?+ au- a-- w++ v?(*) C++ SU++ HU P+
Geek of MOOs             L+ 3- N+ E K- W M@ !V po Y@ t+ 5 !j R- G? tv-
nmassey@lfa.lfc.edu         tv- b- B+(--) e u** h!(*) f* r++(--) n@ y?


References:

Home | Subject Index | Thread Index