Information about the 'magic' field in object.Object class

Petar Petar
Thu Jan 16 14:38:41 UTC 2020


On Thursday, 16 January 2020 at 14:32:24 UTC, Adam D. Ruppe wrote:
> On Thursday, 16 January 2020 at 14:30:04 UTC, realhet wrote:
>> Is there a documentation about that 'magic' field?
>
> I'm pretty sure the only fields in there are pointer to vtable 
> and pointer to monitor object...
>
>> I have a really small object, only 32 bytes. At this point if 
>> I want to add a flag bit I have 3 choices:
>
> Do you need virtual functions? If not, you could probably just 
> make a struct instead.

Alternatively, the class can be marked as extern(C++).


More information about the Digitalmars-d-learn mailing list