OK to do bit-packing with GC pointers?
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Sat Jul 23 08:53:02 UTC 2022
On Saturday, 23 July 2022 at 08:32:12 UTC, Ola Fosheim Grøstad
wrote:
> Also `char*` can't work as char cannot contain pointers. I
> guess you would need to use `void*`.
Well, that is wrong for the standard collection where the typing
is dynamic (based on allocation not on type system). Then any
pointer should work as long as it stays within the boundary of
the allocated object.
More information about the Digitalmars-d-learn
mailing list