How to set non-static variable in static method within class

Trass3r mrmocool at gmx.de
Thu Nov 19 07:03:03 PST 2009


> You can't access non-static data from a static method. Non-static data 
> is related to an instance of a class, and a static method is not bound 
> to any instance.

Exactly. The only way would be to have some array of instances somewhere 
to access.


More information about the Digitalmars-d-learn mailing list