Sujet : Re: Command line globber/tokenizer library for C?
De : Bonita.Montero (at) *nospam* gmail.com (Bonita Montero)
Groupes : comp.lang.cDate : 13. Sep 2024, 13:12:32
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vc1a76$rp7k$3@raubtier-asyl.eternal-september.org>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
User-Agent : Mozilla Thunderbird
Am 13.09.2024 um 10:38 schrieb Michael S:
On Fri, 13 Sep 2024 07:28:34 +0200
Bonita Montero <Bonita.Montero@gmail.com> wrote:
Am 12.09.2024 um 21:38 schrieb Michael S:
>
Callback is as easy in C as in C++.
>
Absolutely not because callbacks can't have state in C.
>
>
So what is 'context' parameter in my code?
In C++ the state is an own internal "this"-like object and you dont't
need any explicit parameters. Just a [&] and the lambda refers to the
whole outer context.