d equivilent of java's public static class fields
Lutger
lutger.blijdestijn at gmail.com
Sun Aug 8 13:35:37 PDT 2010
bearophile wrote:
> Simen kjaeraas:
>> class Answer {
>> alias int Correctness;
>> enum Correctness CORRECT = 0;
>> enum Correctness WRONG = 1;
>>
>> Correctness _answerCode;
>> string _answerText;
>>
>> @property Correctness answerCode( ) const {
>> return _answerCode;
>> }
>
> 'Correctness' there begs to be a typedef :-]
>
> Bye,
> bearophile
I think it wants to go boolean.
More information about the Digitalmars-d-learn
mailing list