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

# Re: commands like " and ;

- Date: Tue, 3 Oct 1995 14:06:45 PDT
- From:
- cc: moo-cows@parc.xerox.com
- Content-Type: TEXT/PLAIN; charset=US-ASCII
- In-Reply-To: <193EC20316@fred.ifas.ufl.edu>

    On Tue, 3 Oct 1995, Chris Black wrote:

    > How would I make a verb act like the " alias for say and the ;
    > alias for eval?  There are two things I have to figure out about this
    > problem:
    > 1. How I would add a verb to act that way no matter where you were,
    > like page, ie a global verb
    > 2. How do I get the verb to take what is adjacent to the command as
    > the args? (this is the hard part) I have been trying to get stuff so
    > you can have your args not seperated by a space but this doesn't seem
    > to work.

    This is a pretty simple thing that is probably covered in the
    programmer's manual.  I'll answer it, but next time, RTFM.  (F
    stands for 'Friendly') :-)

    1) Stick it on $player.

    2) What is adjascent to the command is considered to be PART of the
    command.  Hence, if you use what I use for page: `` 'player Heya '', then
    the verb == "'player".  On the first line of the verb, simply do
    something like args = {verb[2..length(verb)], @args}.

    Phantom

References:

- commands like " and ;

- From: "Chris Black" <BLACK@fred.ifas.ufl.edu>

- Prev: Re: commands like " and ;
- Next: Re: commands like " and ;
- Index: MOO-cows
- Thread: MOO-cows

Home | Subject Index | Thread Index