lkml.org 
[lkml]   [2004]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: GCC nested functions?
On Wed, May 12, 2004 at 10:59:24AM -0700, Stephen Hemminger wrote:
> I used GCC nested functions in the (not released) bridge sysfs
> interface for 2.6.6. It seemed like a nice way to express the sysfs
> related interface without doing lots of code copying (or worse lots
> of macros).

Upward funargs are rather easy to trip over (though you haven't tripped
over them) and the runtime shits itself badly on all architectures when
they happen. It's too dangerous to be allowed to be used.

The code you posted doesn't really have a reason to use nested functions
(i.e. downward funargs aren't being used).


-- wli
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:03    [W:0.029 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site