check type

Jesse Phillips jessekphillips+D at gmail.com
Sun Nov 7 08:17:57 PST 2010


spir Wrote:

> I just realised that what I was asking for is in fact class-level fields -- common to all instances, instead of each instance having it locally.
> 

Maybe you know the answer to that, but just in case you would use a static variable.

 class SC {
     static string f = "SC";
     void show() {writeln(this.f);}
 }




More information about the Digitalmars-d-learn mailing list