How should class objects created in betterC be destroyed

zoe fionalde at outlook.com
Mon Nov 6 05:57:23 UTC 2023


On Monday, 6 November 2023 at 05:52:18 UTC, Imperatorn wrote:
> On Monday, 6 November 2023 at 05:30:02 UTC, zoe wrote:
>> I customized object.d in -betterc mode and created NEW 
>> templates, with modules I can seemingly create classes without 
>> extern(C++) mode, and type conversions in function calls seem 
>> to work fine. But when destroy doesn't find a way to call the 
>> __xtdor() method of the corresponding subclass, is there any 
>> way to execute __xtdor() correctly
>
> Do you have the implementation somewhere?

I just define an empty object class, select the object.d file at 
compile time, and you can use the class, and function parameters 
can also use the interface


More information about the Digitalmars-d-learn mailing list