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

# Re: eval / toliteral safety question

- Date: Tue, 11 Jun 1996 11:42:16 PDT
- From:
- cc: MOO-Cows.PARC@xerox.com
- Content-Transfer-Encoding: 7bit
- Content-Type: text/plain; charset=US-ASCII
- In-Reply-to: "<199606111344.JAA09446@rabbit.INS.CWRU.Edu> from \"Seth I. Rich\" at Jun 11, 96 06:44:12 am; Tue"

    Seth I. Rich drew these hieroglyphs:
    >
    > Is there EVER a circumstace where
    >   eval("return " + toliteral(x) + ";")[2]
    > would not equal x?  Can anyone think of a situation in which this would
    > represent an unsafe operation?  I've been trying to think of a value for
    > x for which this expression could have side effects, but I haven't come
    > up with anything yet, and I suspect I won't.
    >
    > (See, I shut up on MOO-Cows for a month or so, but I'M BACK BWAHAHAHAcough)

    I can't think of anything, but why do you want an identity function?

References:

- eval / toliteral safety question

- From: "Seth I. Rich" <sir@po.cwru.edu>

- Prev: eval / toliteral safety question
- Next: Re: eval / toliteral safety question
- Index: MOO-cows
- Thread: MOO-cows

Home | Subject Index | Thread Index