Sujet : Re: Command line globber/tokenizer library for C?
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.cDate : 14. Sep 2024, 02:41:02
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vc2pje$14j2e$2@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
User-Agent : Pan/0.160 (Toresk; )
On Fri, 13 Sep 2024 23:48:38 +0100, Bart wrote:
On 13/09/2024 23:04, Lawrence D'Oliveiro wrote:
>
On Fri, 13 Sep 2024 11:49:35 +0300, Michael S wrote:
What exactly your response has to do with producing data structures
with predefined layout?
Look at those structures: they have a specific predefined layout.
One link is a man-page with several C structs defined ...
Correct. Structures that the Python wrapper is able to map exactly.
And the choice between which particular structure variants to use is
dynamic, dependent on the event type. So the Python wrapper is able to
dynamically generate a suitable type-safe wrapper -- something that a
statically-typed language cannot do.