MOO-cows Mailing List Archive

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

Re: Upgrading LambdaCore to 1.8.0



At 08:29 AM 5/9/96 PDT, slayer@kaiwan.com wrote:
>vname = verb_info(dobj, x)[3]
>
>also make sure x is starting at 1 instead of at 0.

On Paradigm, it would be:

egrepchange $%(.*verb_%(info%|args%|code%)([^),]+,
%)tostr(%([^),]+%))%(.*%)^/%1%3+1%4

Meaning, change it to
(before-tostr-stuff)(inside-tostr-stuff plus 1)(After tostr stuff)

It would be handy to write code that does this...

(for x in max_obj)
(for y in verbs)
(for verbline in verb_code)
if(m=match(verbline,"$%(.*verb_%(info%|args%|code%)([^),]+,
%)tostr(%([^),]+%))%(.*%)^"))
  newverbline=substitute("%1%3+1%4",m);
endif
endfor
(set_verb_code...)
endfor
endfor

- Kipp
http://radioactivo.com.mx/~paradigm/
-----
GCS/CC d- s+:- a16 C++ UL++++ P+ L++ E-? W+ !N--@ !o-- K->K++++++
w++(--) O- M-- V--? PS++(+) PE(--) Y+ PGP-? t+ 5(+) X++ R+++(*)
!tv b+ DI++++ D++++ G e* h!()(*) r+ !y+




Home | Subject Index | Thread Index