A CTFE Segfault (with explanation, but I'm not sure what the fix
Gareth Charnock
gareth.charnock at gmail.com
Wed Dec 8 12:36:29 PST 2010
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).
More information about the Digitalmars-d-learn
mailing list