[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Local procedures
From: |
Antti-Juhani Kaijanaho |
Subject: |
Re: [Tinycc-devel] Local procedures |
Date: |
Thu, 13 Sep 2007 07:01:08 +0300 |
User-agent: |
Mutt/1.5.16 (2007-06-11) |
On Wed, Sep 12, 2007 at 08:13:02PM -0500, Rob Landley wrote:
> *Shrug* I've never used this feature. I used the equivalent one in java
> once
Java has no equivalent feature. You're probably thinking about
anonymous classes, but they're clunky and ugly and only a shadow of what
local functions are.
A better example is Pascal's local procedures (or local functions). For
extreme examples (where local funcions are a key part of typical
programming style), look at functional programming languages like
Haskell (or even Lisp).
But as I said, even though local functions would enhance the
expressivity of C (as a case in point, it would help tremendously with
callbacks and with qsort), it's unlikely that they will be accepted in
the standard and thus they will not be useful in portable C programs.
--
Antti-Juhani Kaijanaho, Jyväskylä
http://antti-juhani.kaijanaho.fi/newblog/
http://www.flickr.com/photos/antti-juhani/
- Re: [Tinycc-devel] Local procedures, (continued)
- Re: [Tinycc-devel] Local procedures, Peter Lund, 2007/09/11
- Re: [Tinycc-devel] Local procedures, Zdenek Pavlas, 2007/09/12
- Re: [Tinycc-devel] Local procedures, Antti-Juhani Kaijanaho, 2007/09/12
- Re: [Tinycc-devel] Local procedures, Zdenek Pavlas, 2007/09/12
- Re: [Tinycc-devel] Local procedures, Antti-Juhani Kaijanaho, 2007/09/12
- Re: [Tinycc-devel] Local procedures, Zdenek Pavlas, 2007/09/12
- Re: [Tinycc-devel] Local procedures, Rob Landley, 2007/09/12
- Re: [Tinycc-devel] Local procedures, Rob Landley, 2007/09/11
- Re: [Tinycc-devel] Local procedures, Antti-Juhani Kaijanaho, 2007/09/12
- Re: [Tinycc-devel] Local procedures, Rob Landley, 2007/09/12
- Re: [Tinycc-devel] Local procedures,
Antti-Juhani Kaijanaho <=
- Re: [Tinycc-devel] Local procedures, Zdenek Pavlas, 2007/09/13
- Re: [Tinycc-devel] Local procedures, Antti-Juhani Kaijanaho, 2007/09/13
- Re: [Tinycc-devel] Local procedures, Peter Lund, 2007/09/13
- Re: [Tinycc-devel] Local procedures, Antti-Juhani Kaijanaho, 2007/09/13
- Re: [Tinycc-devel] Local procedures, Zdenek Pavlas, 2007/09/13
- Re: [Tinycc-devel] Local procedures, Antti-Juhani Kaijanaho, 2007/09/13
Re: [Tinycc-devel] Local procedures, Bernhard Fischer, 2007/09/13
Re: [Tinycc-devel] Local procedures, kenneth . forsback, 2007/09/12