Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #9137

Re: Evaluating a string as C++ Code

From Nobody <nobody@nowhere.com>
Subject Re: Evaluating a string as C++ Code
Date 2011-08-21 21:50 +0100
Message-Id <pan.2011.08.21.20.50.00.228000@nowhere.com>
Newsgroups comp.lang.c++
References <c129d820-b60e-4e46-9608-5fb6ff3e6de8@a12g2000vbf.googlegroups.com> <4e4ca8f1$0$27164$a8266bb1@newsreader.readnews.com> <slrnj4viqf.gtj.grahn+nntp@frailea.sa.invalid> <pan.2011.08.20.18.35.06.947000@nowhere.com> <slrnj52mbd.gtj.grahn+nntp@frailea.sa.invalid>
Organization Zen Internet

Show all headers | View raw


On Sun, 21 Aug 2011 19:15:58 +0000, Jorgen Grahn wrote:

>> That depends upon which flavour of eval you're talking about.
>> Lisp's "eval" is perfectly safe [...]
> 
> Sorry, I was talking about imperative interpreted languages.

Lisp is frequently both of those. It's rare to see purely "functional"
Lisp code (i.e. no use of mutable state).

Also, Python does have the ability to separate the read and eval, but it's
far more work than doing the same thing in Lisp, and you have to learn the
AST (Abstract Syntax Tree) structure, which isn't something you'd
otherwise learn (OTOH, Lisp's syntax *is* the parse tree). Consequently,
hardly anyone actually uses this feature.

Back to comp.lang.c++ | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Evaluating a string as C++ Code Miro <nickbergeronsemail@gmail.com> - 2011-07-30 09:52 -0700
  Re: Evaluating a string as C++ Code jt@toerring.de (Jens Thoms Toerring) - 2011-07-30 17:40 +0000
    Re: Evaluating a string as C++ Code Miro <nickbergeronsemail@gmail.com> - 2011-08-06 13:55 -0700
      Re: Evaluating a string as C++ Code jt@toerring.de (Jens Thoms Toerring) - 2011-08-07 00:53 +0000
  Re: Evaluating a string as C++ Code Carlo Milanesi <carlo.nospam.milanesi@libero.it> - 2011-07-30 20:08 +0200
    Re: Evaluating a string as C++ Code James Kanze <james.kanze@gmail.com> - 2011-08-07 10:26 -0700
      Re: Evaluating a string as C++ Code Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-08-11 21:33 +0000
  Re: Evaluating a string as C++ Code Paavo Helde <myfirstname@osa.pri.ee> - 2011-07-30 15:33 -0500
    Re: Evaluating a string as C++ Code BGB <cr88192@hotmail.com> - 2011-07-30 14:45 -0700
  Re: Evaluating a string as C++ Code jacob navia <jacob@spamsink.net> - 2011-08-12 10:25 +0200
    Re: Evaluating a string as C++ Code Juha Nieminen <nospam@thanks.invalid> - 2011-08-12 12:07 +0000
      Re: Evaluating a string as C++ Code jacob navia <jacob@spamsink.net> - 2011-08-12 14:31 +0200
  Re: Evaluating a string as C++ Code Alexei Zakharov <alexeiz@gmail.com> - 2011-08-18 01:53 -0400
    Re: Evaluating a string as C++ Code Juha Nieminen <nospam@thanks.invalid> - 2011-08-18 06:22 +0000
      Re: Evaluating a string as C++ Code Paavo Helde <myfirstname@osa.pri.ee> - 2011-08-18 12:26 -0500
        Re: Evaluating a string as C++ Code Juha Nieminen <nospam@thanks.invalid> - 2011-08-18 18:13 +0000
    Re: Evaluating a string as C++ Code Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-08-20 14:57 +0000
      Re: Evaluating a string as C++ Code Nobody <nobody@nowhere.com> - 2011-08-20 19:35 +0100
        Re: Evaluating a string as C++ Code Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-08-21 19:15 +0000
          Re: Evaluating a string as C++ Code Nobody <nobody@nowhere.com> - 2011-08-21 21:50 +0100

csiph-web