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);}
}