This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: strange bug that doesn't occur in Linux, OpenBSD or ITS


On Mon, Feb 20, 2012 at 3:48 AM, Csaba Raduly wrote:
> On Sun, Feb 19, 2012 at 1:29 AM, Mark Geisert Âwrote:
>>
>> 4. You've coded functions nested inside main(). ÂI haven't seen that practice
>> in C language before but apparently it works. ÂColor me impressed.
>
> It's a non-portable GCC extension:
>
> http://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html#Nested-Functions
>

An idea borrowed from other languages that allow it.  Using
"non-portable" and in this case non-standard methods for C is not
advisable.  Those coming after you will curse your name.
Standardization is one key to maintainability.

-- 
Earnie
-- https://sites.google.com/site/earnieboyd

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]