Deutsch   English   Français   Italiano  
<20240410101126.236@kylheku.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Kaz Kylheku <643-408-1753@kylheku.com>
Newsgroups: comp.lang.c
Subject: Re: Recursion, Yo
Date: Wed, 10 Apr 2024 17:19:31 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <20240410101126.236@kylheku.com>
References: <uut24f$2icpb$1@dont-email.me> <uutqd2$bhl0$1@i2pn2.org>
 <uv2u2a$41j5$1@dont-email.me> <87edbestmg.fsf@bsb.me.uk>
 <uv4r9e$mdd3$1@dont-email.me> <uv5e3l$q885$1@dont-email.me>
 <uv5gfd$qum1$1@dont-email.me> <uv5lgl$s6uj$1@dont-email.me>
Injection-Date: Wed, 10 Apr 2024 19:19:31 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a02df6af16e190f6c7ee895d512b8f84";
	logging-data="1151493"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18a2UmQWLOjQrV3tRsxRzrmsOZqXWM10dw="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:u6/Am1YVO7qI6KqECJffAMkcrpA=
Bytes: 1643

On 2024-04-10, David Brown <david.brown@hesbynett.no> wrote:
> Basically, anything you could do with a nested function in gcc C you can 
> do in C++:

Except pass that lambda to another module that expects a simple function
pointer.

That's not just C libraries. There is a foreign function ecosystem based
on the conventions of C. If you have a function pointer, you can pass it
into any high level language that supports C interpo, and it can call
that thing.

-- 
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca