MOO-cows Mailing List Archive

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

Re: Interesting code...



On Sun, 14 Jan 1996, Chuck Adams wrote:

> > Can anyone come up with some 1.8.0 MOO code that, when given this:
> > 
> >    "%{a,b%{c,d}e,f,%{g,%{h}},i}"
> > 
> > Returns this:
> > 
> > {"a","b%{c,d}e","f","%{g,%{h}}","i"}
> 
> lst = args[1];
> lst[1] = "";	/* get rid of leading percent-sign */
> lst = $string_utils:strip_chars(lst," ");
> lst = strsub(lst, ",", "\",\"");
> return $no_one:eval_d(lst);

I forgot to tell you that the code is not in a LambdaCore, and the words 
in the list CAN contain spaces... :)  The the letters a-i could represent 
anything except `%{', `,' and `}'  Which means they can contain quotes.

Speaking of letting Pavel work with his server, this *just* happened:

Jan 14 13:38:25: CHECKPOINTING on M.db.new.#129# finished
Jan 14 13:40:53: *** PANIC: Caught signal 11
Jan 14 13:40:53: *** PANIC: Empty expr stack in DECOMPILE!
Jan 14 13:40:53: *** RECURSIVE PANIC: aborting

I have no other useful info, except that I was messing with the binary 
connections and manipulating lists (alot).
Do you want a copy of my DB again Pavel?

- Kipp



Follow-Ups: References:

Home | Subject Index | Thread Index