distinguish between classes and structures

Kagamin spam at here.lot
Tue Dec 16 06:43:42 PST 2008


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
}


More information about the Digitalmars-d-learn mailing list