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

# Re: Wish list

- Date: Mon, 28 Aug 1995 12:38:51 PDT
- From:
- Cc: moo-cows@parc.xerox.com
- Content-Length: 672
- Content-Transfer-Encoding: 7bit
- Content-Type: text/plain; charset=US-ASCII
- Illegal-Object: Syntax error in From: address found on alpha.xerox.com: From: M.Brundage<anomaly@u.washington.edu> ^-missing end of mailbox
- In-Reply-To: <Pine.SUN.3.91.950828122946.25565A-100000@kong.syr.edu> from "Kipp the Kidd" at Aug 28, 95 09:31:56 am

    > Has anyone added this to the wish list yet? {a,b,c}[d]=e
    > whichone=args[1];
    > stuff=args[2];
    > {this.name,this.description,this.aliases}[whichone]=stuff;

    You can achieve the same results for the properties above by doing

    whichone=args[1];
    stuff=args[2];
    prop={"name","description","aliases"}[whichone];
    this.(prop)=stuff;

    which is not too much of a workaround.
    What would be nice would be the capability to do the same thing for variables
    and builtin-verbs that can be done for properties and other verbs (referring
    to them as strings, like in line 4 above), since then you could do
    {a,b,c}[d]=e no matter what a, b, and c are.

    michael
    brundage@math.washington.edu

Follow-Ups:

- Re: Wish list

- From: Kipp the Kidd <mcmudge@mailbox.syr.edu>

- Re: Wish list

- From: Microwave Systems Admin <root@microwave.com>

References:

- Wish list

- From: Kipp the Kidd <mcmudge@mailbox.syr.edu>

- Prev: Re: Wish list
- Next: Re: Wish list
- Index: MOO-cows
- Thread: MOO-cows

Home | Subject Index | Thread Index