distinguish between classes and structures
Weed
resume755 at mail.ru
Tue Dec 16 07:48:30 PST 2008
Kagamin пишет:
> Weed Wrote:
>
>> it is impossible to create the struct of the object which will be
>> arbitrary size (raised by a user) + to be able to set compile-time +
>> should work with the structures of its type.
>>
>> this is mathematical matrix, for example
>
> Matix? Easy.
>
> class Matrix //can inherit from some generic base class
> {
> int[2] dims;
> int[][] data;
> //methods
> }
not just a matrix, see thread "struct inheritance need?" in this NG
More information about the Digitalmars-d-learn
mailing list