Normalizing Const Syntax.

Hans W. Uhlig huhlig at clickconsulting.com
Fri Apr 11 13:42:55 PDT 2008


Georg Wrede wrote:
> Hans W. Uhlig wrote:
>> same for classes:
>>
>> const class foo § extends bar {
>>     const int x;
>>     pure foo(const int, const double) § returns invariant string;
>>     // ... more code ...
>> }
>>
>> (Note: § is used as a divider because no one uses it for anything in 
>> programming and I didn't want to start an argument over : or | or ; or 
>> any other punctuation being used elsewhere and being bad, quite 
>> possible punctuation wouldn't be neccessary)
> 
> It's not used because it's not found in the american keyboard.

as listed, it was not meant to be a suggestion for punctuation mearly a 
placeholder. : would work just as well.



More information about the Digitalmars-d mailing list