On 15-07-2012 18:34, bearophile wrote:
Alex Rønne Petersen:
This is how you do it in modern D:
This seems fiddly and bug-prone (and eventually fit to go in the D FAQ).
Maybe it needs to use an aligned_malloc, to avoid aligning troubles in
the class.
Bye,
bearophile
malloc is guaranteed to allocate on a machine word boundary which I
think is sufficient.
Bug-prone? Sure. But I don't think there's much we can do about that
without language support...
--
Alex Rønne Petersen
[email protected]
http://lycus.org