core.runtime.GC memory alignment

Manu turkeyman at gmail.com
Sun Oct 27 19:18:30 PDT 2013


On 28 October 2013 06:46, Peter Alexander <peter.alexander.au at gmail.com>wrote:

> On Sunday, 27 October 2013 at 20:30:05 UTC, Andrei Alexandrescu wrote:
>
>> Yah, something like that. I found align(NNN) underspecified and
>> underpowered for my work with allocators. As a simple matter, NNN must be a
>> literal, not a compile-time expression. You can't even write e.g.
>> align(size_t.alignof), which is fairly basic.
>>
>
> Yeah I noticed the literal requirement as well and thought it was quite
> odd...
>

I reported that as a deficiency over a year ago, I recall discussion, and
thought it was to be fixed. Guess it didn't eventuate.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20131028/cc920117/attachment.html>


More information about the Digitalmars-d mailing list