[881] in Coldmud discussion meeting
code
daemon@ATHENA.MIT.EDU (Mon Jan 8 00:05:12 1996
)
Date: Sun, 07 Jan 1996 23:51:03 +0500
To: coldstuff@tombstone.sunrem.com
From: mwilson@vt.edu (Mike "Zaphod" Wilson)
I was trying to write a simple little program to demonstrate some
code to a friend, and I can't seem to get it to compile, nor do I
understand why it won't .... anyone care to point out what
I'm doing wrong?
-----
>arg l , [dummy];
>var x,y,temp;
>
>if (type(l) != 'list){
> throw (~type, "Must be list of strings");}
>for x in (substitutions)
> if (.find_method(x[2]))
> for y in [1 .. l.length()] {
> temp = tosym(x[2]);
> temp = (| .(temp)() |);
> l[y] = $string.replace(l[y],x[1],temp) ;
>}
>return l;
thanks,
Mike
mwilson@glock.com mwilson@vt.edu
It's difficult to kiss a woman one moment, and kill her the next.
If Bill Clinton is the answer, it must be one very stupid question.