MOO-cows Mailing List Archive

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

re: fromliteral()



At 12:24 AM 3/14/96 PST, Fozzie wrote:
>On Wed, 13 Mar 1996, Jefferson M. Dubrule wrote:
>
>> --- Kipp the Kidd wrote:
>> ;$no_one:eval_d("{1,2,3}")[2]
>> => "{1,2,3}"
>> --- end of quoted material ---
>> actually, the fastest, and less DB assuming, way of doing this operation
would
>> be this:
>
>  I believe he really meant to write:
>
>  => {1, 2, 3}
>
>
>> 
>> ;eval("return "+toliteral({1,2,3}))
>> => "{1, 2, 3}"
>
>
>  This code will actually return a parse error, since there is no ';' at 
>the end.  The proper code would be:
>
>  ;eval("return" + toliteral({1, 2, 3}) + ";")[2]

Actually, no.  $no_one:eval_d does that stuff.

- Kipp
-----BEGIN GEEK CODE BLOCK-----
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+
------END GEEK CODE BLOCK------
-----BEGIN NOT SO GEEKY BLOCK-----
MOO projects:
  Breakthrough MOO project:  paradigm.microwave.com 5000
  MOO2000:                   moo.microwave.com 2000
  MundoHispano:              europa.syr.edu 8888
------END NOT SO GEEKY BLOCK------




Home | Subject Index | Thread Index