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


_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to