[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Nested functions (was: Dollar Sign in Identifiers Ext
From: |
u-tcc-uepj |
Subject: |
Re: [Tinycc-devel] Nested functions (was: Dollar Sign in Identifiers Extension) |
Date: |
Sat, 11 Apr 2015 17:02:16 +0200 |
Hi Sergey,
On Sat, Apr 11, 2015 at 05:31:30PM +0300, Sergey Korshunoff wrote:
> From libCello docs: Lambda ... GNU99 C has a great feature that lets
> you define functions inside functions
>
> tcc currently don't have a nested functions implemented. This is a
> nice feature. But it is not implemented :-(
This is not standard C and it is not standard for a reason - the feature
opens a can of worms, it is pretty hard to support it without introducing
regressions and/or limitations.
See f.i. the recent descussion on the pcc list, it is long but here are
a couple of messages which make good points:
https://marc.info/?l=pcc-list&m=142195333911806&w=2
https://marc.info/?l=pcc-list&m=142199106621724&w=2
https://marc.info/?l=pcc-list&m=142201611028645&w=2
IOW, C is probably not the right language for this feature.
I would say tcc is neither the right compiler to add features to :)
if we want it to be small and fast. Especially the intrusive features
like the nested functions should be kept out, IMVHO.
Rune
- Re: [Tinycc-devel] Dollar Sign in Identifiers Extension, (continued)
- Re: [Tinycc-devel] Dollar Sign in Identifiers Extension, Ramsay Jones, 2015/04/13
- Re: [Tinycc-devel] Dollar Sign in Identifiers Extension, Sergey Korshunoff, 2015/04/13
- Re: [Tinycc-devel] Dollar Sign in Identifiers Extension, Ramsay Jones, 2015/04/14
- Re: [Tinycc-devel] Dollar Sign in Identifiers Extension, Daniel Holden, 2015/04/14
- Re: [Tinycc-devel] Dollar Sign in Identifiers Extension, Ramsay Jones, 2015/04/14
- Re: [Tinycc-devel] Dollar Sign in Identifiers Extension, Sergey Korshunoff, 2015/04/16
- Re: [Tinycc-devel] Dollar Sign in Identifiers Extension, Daniel Holden, 2015/04/16
- Re: [Tinycc-devel] Dollar Sign in Identifiers Extension, Thomas Preud'homme, 2015/04/11
- Re: [Tinycc-devel] Dollar Sign in Identifiers Extension, Sergey Korshunoff, 2015/04/11
- Re: [Tinycc-devel] Dollar Sign in Identifiers Extension, Daniel Holden, 2015/04/11
- Re: [Tinycc-devel] Nested functions (was: Dollar Sign in Identifiers Extension),
u-tcc-uepj <=
Re: [Tinycc-devel] Dollar Sign in Identifiers Extension, Jared Maddox, 2015/04/09
Re: [Tinycc-devel] Dollar Sign in Identifiers Extension, Jared Maddox, 2015/04/12