ImportC and #pragma pack

Paulo Pinto pjmlp at progtools.org
Thu Sep 30 09:05:50 UTC 2021


On Thursday, 30 September 2021 at 07:01:07 UTC, Claude wrote:
> On Wednesday, 29 September 2021 at 17:25:51 UTC, Imperatorn 
> wrote:
>> My vote is for supporting it. That way it will be complete, 
>> and I remember seeing it around networking and serialization 
>> contexts for example. I tried asking in some c/c++ forums and 
>> got an estimate at around 3-5% of stuff use it according to 
>> them. Not much, but also not below 1%.
>
> I would also vote for that particular feature.
>
> I've also come across it in serialization context, but also 
> many times in the embedded system low-level context to describe 
> memory-mapped devices.
>
> As to how open should ImportC be to C extensions, I have no 
> idea.

Windows, Linux/Android and macOS headers are full of C 
extensions, so I would say for ImportC to be of value for systems 
programming on those platforms, it needs to at very least be able 
to understand those extensions.


More information about the Digitalmars-d mailing list