Why this doesn't produce an error or works as expected?
Jonathan M Davis
newsgroup.d at jmdavisprog.com
Sat Jul 5 10:19:25 UTC 2025
On Saturday, July 5, 2025 2:19:11 AM Mountain Daylight Time partypooper via Digitalmars-d-learn wrote:
> On Saturday, 5 July 2025 at 08:08:08 UTC, Jonathan M Davis wrote:
> > On Friday, July 4, 2025 12:04:55 PM Mountain Daylight Time
> > partypooper via Digitalmars-d-learn wrote:
> >> [...]
> >
> > The only time that a setter function would be triggered would
> > be assignment such as
> >
> > [...]
>
> Thanks for your thorough answer. Thats for sure a little bit sad.
> It would be only a little bit of inconvenience if it would error,
> but silently ignoring such thing could really be one time hard to
> spot bug.
Well, thorough unit tests can definitely help catch stuff like this, but
yeah, it really should be an error. I expect that it's just an oversight
that hasn't gotten enough attention and thus hasn't been a priority among
all of the various bugs that come up, so it hasn't been fixed yet.
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list