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: <87edbestmg.fsf@bsb.me.uk> 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 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