what was wrong with struct & class in C++?

Don Clugston dac at nospam.com.au
Thu Dec 13 00:07:52 PST 2007


Yigal Chripun wrote:
>  > a question: should matrices be structs or classes?
> 
> I'd like to clarify your question:
> do you want to ask -
> a) whether they should be value types or reference types?
> or
> b) whether they should be implemented with D structs or D classes?
[snip]
> I'm new to D, but from what little i know, if you want OOP behavior (and 
> matrices would benefit from polymorphism) 

How? What matrix operations are polymorphic?



More information about the Digitalmars-d mailing list