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

# re: fromliteral()

- Date: Thu, 14 Mar 1996 12:20:55 PST
- From:
- Cc: moo-cows@parc.xerox.com
- Content-Type: text/plain; charset="us-ascii"

    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------

- Prev: re: fromliteral()
- Next: re: fromliteral()
- Index: MOO-cows
- Thread: MOO-cows

Home | Subject Index | Thread Index