Neat project: add pointer capability to std.bitmanip.bitfields

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Wed Dec 2 16:31:46 PST 2015


On 12/2/15 7:22 PM, Vladimir Panteleev wrote:
> On Thursday, 3 December 2015 at 00:08:17 UTC, Vladimir Panteleev wrote:
>> On Wednesday, 2 December 2015 at 19:59:14 UTC, Andrei Alexandrescu wrote:
>>> On 12/02/2015 02:54 PM, Vladimir Panteleev wrote:
>>>> On Wednesday, 2 December 2015 at 19:39:47 UTC, Andrei Alexandrescu
>>>> wrote:
>>>>> [...]
>>>>
>>>> Warning, this is very unsafe and incompatible with the GC.
>>>> Bit-twiddling
>>>> GC pointers can lead to memory corruption and very hard-to-track bugs.
>>>> Such a feature must be opt-in in a very explicit way.
>>>
>>> Well it's @system. -- Andrei
>>
>> Considering that @system is the default, I really don't think that's
>> enough.
>
> That just reminded me to file this:
>
> https://issues.dlang.org/show_bug.cgi?id=15399

Nice. What I'd say is that at the end of the day there's documentation. 
-- Andrei


More information about the Digitalmars-d mailing list