Is defining get/set methods for every field overkill?


Sat Nov 19 05:36:16 UTC 2022


On Saturday, 19 November 2022 at 03:52:41 UTC, thebluepandabear 
wrote:
> ...
> .....
> Honestly, it may not be a magic bullet, but still useful.

This refactoring may be source compatible, but would it be binary 
compatible?

i.e. you refactor your class, compile it as an updated version of 
your library, then ship that updated library to your users.... 
will they then need to recompile their own code because of the 
refactoring you did?

In C#, I know the answer to that question.

As for D, I do not know (and I don't expect you to either ;-)


More information about the Digitalmars-d-learn mailing list