PhobosV3+ Fundamental Elements

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Fri Aug 28 00:24:02 UTC 2026


On 28/08/2026 11:55 AM, monkyyy wrote:
> On Thursday, 27 August 2026 at 22:39:04 UTC, Richard (Rikki) Andrew 
> Cattermole wrote:
>>
>> The current thinking would suggest that a new default root class 
>> should appear similar to:
>>
>> ```d
>> class RootClass : void {
>>     // No monitor
>>     void toString(scope StringBuilder) scope const {}
>>     ulong toHash() const => 0
>>     int opCmp(scope const RootClass) scope const => 0;
>> }
>> ```
>>
>> But it won't be the only root class, PhobosV3+ will have more than 
>> just this one.
> 
> will structs be able to swap to a different rootclass?

Structs don't have a root class.



More information about the Digitalmars-d mailing list