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

# Re: Wish list

- Date: Tue, 29 Aug 1995 06:37:28 PDT
- From:
- cc: Kipp the Kidd <mcmudge@mailbox.syr.edu>, moo-cows@parc.xerox.com
- Content-Type: TEXT/PLAIN; charset=US-ASCII
- In-Reply-To: <9508281938.AA11535@saul2.u.washington.edu>

    On Mon, 28 Aug 1995 anomaly@u.washington.edu wrote:

    > > 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;
    >

    Uh, why not:

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

    ???

References:

- Re: Wish list

- From: <anomaly@u.washington.edu>

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

Home | Subject Index | Thread Index