On 21/11/10 22:39, bearophile wrote:
Gareth Charnock:

struct LeafType {
        string Compile_not_ovloaded() {
                return "expression";
        }
};

Note that D structs don't require the ending semicolon, so in practice it is 
not used. And in D method names start with a lower case.

Bye,
bearophile

Okay, but this was completely experimental code unlikely to see the light of day. I like to put the semicolon after the struct to keep in the habit (otherwise when I use C++ I start forgetting). The "_not_ovloaded" bit was to check the bug wasn't anything to do with overloading (it wasn't).

Reply via email to