Constant relationships between non-constant objects

Maxim Fomin via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 17 23:05:13 PDT 2014


On Wednesday, 18 June 2014 at 05:34:18 UTC, Sebastian Unger wrote:
>
> So again, I believe, if D wants to play any role in major OO 
> software design and development, it will need to step up its 
> game. Especially in view of C++11 having addressed a number of 
> the issues in C++ that I would have chosen D over C++ for.
>
> Cheers,
> Seb

I believe this is wrong. First of all, if you want to keep 
relationship between objects, instead of thinking which feature 
can prevent it, consider not to try to break it in a first place.

Secondly, it is sometimes discussed how to write some idiomatic 
code per se, rather than to solve particular task.

Thirdly, if feature from one language does not do the same as 
similar feature from other language, does not mean that the 
feature/language is broken.

Lastly, taking into account that it was Walter decided to do so, 
says something.

Regarding your problem. Keeping relationship between two classes 
can be achieved by associative array, by inheriting from one 
class or by using examples above.


More information about the Digitalmars-d mailing list