Re: nested functions

torbenm@app-3.diku.dk (=?iso-8859-1?q?Torben_=C6gidius_Mogensen?=)
8 Sep 2006 12:24:59 -0400

          From comp.compilers

Related articles
[6 earlier articles]
Re: nested functions tommy.thorn@gmail.com (Tommy Thorn) (2006-08-31)
Re: nested functions marcov@stack.nl (Marco van de Voort) (2006-09-06)
Re: nested functions tommy.thorn@gmail.com (Tommy Thorn) (2006-09-06)
Re: nested functions Jatin_Bhateja@mentor.com (Jatin Bhateja) (2006-09-08)
Re: nested functions 148f3wg02@sneakemail.com (Karsten Nyblad) (2006-09-08)
Re: nested functions foobar@nowhere.void (Tommy Thorn) (2006-09-08)
Re: nested functions torbenm@app-3.diku.dk (2006-09-08)
Re: nested functions chris.dollin@hp.com (Chris Dollin) (2006-09-08)
| List of all articles for this month |
From: torbenm@app-3.diku.dk (=?iso-8859-1?q?Torben_=C6gidius_Mogensen?=)
Newsgroups: comp.compilers
Date: 8 Sep 2006 12:24:59 -0400
Organization: Department of Computer Science, University of Copenhagen
References: 06-08-140 06-09-010
Keywords: functional, design
Posted-Date: 08 Sep 2006 12:24:59 EDT

Jatin Bhateja <Jatin_Bhateja@mentor.com> writes:




> According to me GCC nested functions are not same as nested functions
> in functional languages as these languages are dynamically scoped
> languages and in them the order in which locals are searched is from
> inner to outermost function in enclosing order in run time stack.


This is true only for a few functional languages, most notably the
orignal LISP. Scheme, SML, OCaml and Haskell are all statically
scoped, and I believe Common LISP supports both static and dynamic
scopes.


                Torben



Post a followup to this message

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