Variables of struct and class types are called objects - discuss - spec

Nick Treleaven nick at geany.org
Mon Aug 4 15:38:57 UTC 2025


On Monday, 4 August 2025 at 15:13:19 UTC, Nick Treleaven wrote:
> To complicate matters, the spec sometimes uses 'object' just to 
> mean an instance of any type:
>
>> If a pointer contains a null value, it is not pointing to a 
>> valid object.
>
> https://dlang.org/spec/type.html#pointers
>
> Note: git blame has my name on those lines, because I moved 
> them there from arrays.dd.
> I think there are other places in the spec too but I've not 
> found them after a quick look. Anyway that section could be 
> fixed.

Fix: https://github.com/dlang/dlang.org/pull/4281


More information about the Digitalmars-d-learn mailing list