tinycc-devel
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]