Re: Example interpreter C

Laurence Finston <lfinsto1@gwdg.de>
14 Sep 2005 21:18:17 -0400

          From comp.compilers

Related articles
[6 earlier articles]
Re: Example interpreter C Markus.Elfring@web.de (2005-08-24)
Re: Example interpreter C der_julian@web.de (Julian Stecklina) (2005-08-31)
Re: Example interpreter C j_simon@gmx.at (Joerg Simon) (2005-09-02)
Re: Example interpreter C lfinsto1@gwdg.de (Laurence Finston) (2005-09-07)
Re: Example interpreter C boldyrev+nospam@cgitftp.uiggm.nsc.ru (Ivan Boldyrev) (2005-09-10)
Re: Example interpreter C gneuner2@comcast.net (George Neuner) (2005-09-10)
Re: Example interpreter C lfinsto1@gwdg.de (Laurence Finston) (2005-09-14)
Re: Example interpreter C boldyrev@uiggm.nsc.ru (Ivan Boldyrev) (2005-09-17)
Re: Lisp variables, was Example interpreter C lfinsto1@gwdg.de (Laurence Finston) (2005-09-22)
Re: Lisp variables, was Example interpreter C der_julian@web.de (Julian Stecklina) (2005-09-25)
| List of all articles for this month |

From: Laurence Finston <lfinsto1@gwdg.de>
Newsgroups: comp.compilers
Date: 14 Sep 2005 21:18:17 -0400
Organization: GWDG, Goettingen
References: 05-08-055 05-08-062 05-08-073 05-08-084 05-09-025 05-09-036
Keywords: design, OOP

On Sat, 10 Sep 2005, Ivan Boldyrev wrote:


> Do you mean Python-like behavior? Modern Lisp dialects (Common Lisp
> and Scheme) do require variables declarations.


I haven't programmed in Common Lisp in several years, but this
is the behavior I was referring to:


      GCL (GNU Common Lisp) Version(2.2.1) Thu Jul 17 11:34:27 MET DST 1997
      Licensed under GNU Public Library License
      Contains Enhancements by W. Schelter




      >(setq a "a")
      "a"


      >(setq a 1)
      1


      >(setq a 3.24)
      3.2400000000000002


I don't know whether this has been changed in more recent versions.
I don't think anyone at the computer lab here programs in Common
LISP, so they haven't bothered to update. However, I think making
this behavior invalid would break a lot of code.


I often write throwaway programs in Emacs-Lisp, which shows
this behavior.


Laurence Finston


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.