Adding a new design constraint to D

forkit forkit at gmail.com
Tue Jun 21 23:48:52 UTC 2022


On Tuesday, 21 June 2022 at 11:05:10 UTC, The Zealot wrote:
>

and btw:


"Java's notion of one class per module is a bit too restrictive, 
as one may desire a set of closely interrelated classes that 
encapsulate a concept, and those should go into a module." - 
Walter Bright

https://forum.dlang.org/post/pr110b$9j5$1@digitalmars.com

Oh great. He does get it afterall.

But what if you want closely interrelated classes that 
encapsulate a concept, in the same module, but don't want every 
class to have complete access to every part of every other 
class......

Oh. I know, just put each class in it's own module.



More information about the Digitalmars-d mailing list