MOO-cows Mailing List Archive
[Prev][Next][Index][Thread]
Re: MOO into C
> On Wed, 24 Jul 1996, Adams, Charles wrote:
> >
> > foo = {@foo, bar}
> >
>
> Perhaps as an alternate to this syntax, the following could be
> implemented:
>
> foo[expr] = bar
>
> Where if expr is greater than the length of foo, it would append
> bar to the end of the list foo. A good example of `expr' might be
> `$ + 1' or some other symbol similar to $ to represent the slot
> past the end of the list.
Well, you can do foo[$+1..$+1] = {bar}
But implementing foo[$ + 1] = bar would be a trivial hack to OP_INDEXSET...
---
Brian Buchanan sysop@calbbs.com brian@wasteland.calbbs.com
-= ArchWizard of Farpoint (wasteland.calbbs.com 8888) =-
Home |
Subject Index |
Thread Index