std.digest can't CTFE?

Stefan Koch uplink.coder at googlemail.com
Fri Jun 1 19:00:04 UTC 2018


On Friday, 1 June 2018 at 18:30:34 UTC, Sisor wrote:
> On Friday, 1 June 2018 at 14:56:32 UTC, Stefan Koch wrote:
>> On Thursday, 31 May 2018 at 21:29:13 UTC, Manu wrote:
>>> "CTFE
>>> Digests do not work in CTFE"
>>>
>>>
>>> That's an unfortunate limitation... why is, those things? :(
>>
>> Because CTFE cannot do things which are technically ABI 
>> dependent.
>
> Is there a technical reason for this? Can CTFE determine the 
> endianness of the (target-) system?

it's more then just endianness it's also alignment. I'd rather 
not make guarantees about that.
newCTFE for example is build in reasonably a platform agnostic 
way, therefore it cannot know anything target or even host 
specific without the programmer being explicit about it.


More information about the Digitalmars-d mailing list