Re: nested functions (=?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) (2006-08-31)
Re: nested functions (Marco van de Voort) (2006-09-06)
Re: nested functions (Tommy Thorn) (2006-09-06)
Re: nested functions (Jatin Bhateja) (2006-09-08)
Re: nested functions (Karsten Nyblad) (2006-09-08)
Re: nested functions foobar@nowhere.void (Tommy Thorn) (2006-09-08)
Re: nested functions (2006-09-08)
Re: nested functions (Chris Dollin) (2006-09-08)
| List of all articles for this month |

From: (=?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 <> 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


Post a followup to this message

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