tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: valgrind




> On Mar 22, 2022, at 1:17 PM, Rhialto <rhialto%falu.nl@localhost> wrote:
> 
> On Sun 20 Mar 2022 at 23:17:57 -0400, Mouse wrote:
>> clang is - or at least was last I checked - under the impression that
>> nested functions are little-used and thus are not worth supporting.
> 
> I guess they can think so because nested functions are a gcc extension.
> Quite a useful one, I think, having been taught programming with Algol
> 68 which of course does have nested functions; but an extension
> nevertheless.
> 
> I found an interesting article about why they're bad...
> https://thephd.dev/lambdas-nested-functions-block-expressions-oh-my

That's a good argument for why GCC's implementation of nested functions is bad.  It doesn't mean other implementations that avoid the security blunder GCC made are bad.

I don't believe ALGOL implementations needed executable stacks to implement nested functions, for example.

	paul




Home | Main Index | Thread Index | Old Index