On Sunday, 7 April 2019 at 12:19:10 UTC, bauss wrote:
On Saturday, 6 April 2019 at 20:16:06 UTC, Paul Backus wrote:
On Saturday, 6 April 2019 at 19:31:15 UTC, Robert M. Münch wrote:
I have a C interface that uses a parameter of type intptr_t. Wondering if size_t is the correct D equivalent?

The correct equivalent is `intptr_t` from `core.stdc.stdint`.

Which is just an alias for ptrdiff_t.

Unless this is guaranteed to be the case on every platform druntime is ever ported to, it is technically better to use the `intptr_t` alias.

Reply via email to