C2 forum

General Category => Ideas => Topic started by: acbaile on September 22, 2018, 02:17:24 AM

Title: deleted
Post by: acbaile on September 22, 2018, 02:17:24 AM
deleted
Title: Re: Function inside function
Post by: bas on September 24, 2018, 12:20:16 PM
Features like this are not used very often in C and do make a language more complex than needed. So it was removed.
Title: Re: Function inside function
Post by: magnusi on November 09, 2018, 11:44:55 PM
If it has visibility of local variables, then we are talking about a closure rather than a function and when you want to have closures in your language, you need to be wary of many factors, for example:


Solving these is probably beyond the scope of this language.
Title: Re: Function inside function
Post by: lerno on November 14, 2018, 06:30:42 PM
This C feature is only in GCC/Clang or?