how to achieve C's Token Pasting (##) Operator to generate variable name in D?

mw mingwu at gmail.com
Thu Jun 4 19:51:21 UTC 2020


On Thursday, 4 June 2020 at 19:42:57 UTC, mw wrote:
> On Thursday, 4 June 2020 at 18:42:05 UTC, H. S. Teoh wrote:
>> TBH, whenever I run into a diamond inheritance problem or 
>> similar, my first reaction is, I'm using the wrong tool for
                ^^^^^^^^^^^^^^

Haha, it's also because most of the populate OO languages didn't 
solve the diamond problem, and made the multiple inheritance hard 
to use in such situation, that's how the programmers learnt this 
"first reaction" from past bad experience.

Conversely, if all the OO languages solved the diamond problem 
cleanly from the very start, the programmers will never learn 
such reaction.



More information about the Digitalmars-d-learn mailing list