class x is hidden by y

bearophile bearophileHUGS at lycos.com
Thu Oct 7 03:32:04 PDT 2010


Benjamin Thaut:

> abstract class foo {
> protected:
> 	void WrongType(){
> 		assert(0,"Using wrong type");
> 	}

In D classes start with an upper case, and methods with a lower case (and both generally use camelCase/CamelCase instead of underscores).

So the way to write that code is:

abstract class Foo {
  protected:
    void wrongType() {

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list