d equivilent of java's public static class fields
Simen kjaeraas
simen.kjaras at gmail.com
Sun Aug 8 13:32:33 PDT 2010
bearophile <bearophileHUGS at lycos.com> 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 :-]
Don't I know it. But typedefs are supposed to go away.
--
Simen
More information about the Digitalmars-d-learn
mailing list