Why is `opequals` for objects not `@safe` by default?

H. S. Teoh hsteoh at qfbox.info
Fri Apr 5 16:02:27 UTC 2024


On Thu, Apr 04, 2024 at 11:56:05PM -0600, Jonathan M Davis via Digitalmars-d wrote:
[...]
> Ideally, Object wouldn't have functions like opEquals, and they'd only
> be added by derived classes so that programs could put whatever
> attributes on them make the most sense, but that's a breaking change,
> so it hasn't happened.
[...]

We've been talking about ProtoObject for years now. When will that
materialize?


T

-- 
There is no gravity. The earth sucks.


More information about the Digitalmars-d mailing list