Extended Type Design.

Bill Baxter dnewsgroup at billbaxter.com
Fri Mar 16 17:12:46 PDT 2007


Andrei Alexandrescu (See Website For Email) wrote:
> Deewiant wrote:
> [snip]
> 
>> In general, I do agree with your view, found elsewhere in the thread, 
>> that using
>> existing keywords is best. That, or constructs like "scope (success)" 
>> where
>> success isn't a keyword. I'm just currently a bit repelled by the pair 
>> "super
>> const".
> 
> Well how about "real const" then :oD.
> 
> I think the good news is that you don't need to type it that often. You 
> type:
> 
> const char[] str = "Hi!";
> 
> and the compiler figures out the "super" part itself.

Doh!  'real const'  of course... how could I leave that one out.


   'real const'
   'true const'
   'double const'
   'finally const'
   'is const'
   or
   'is finally super double true real const'

--bb



More information about the Digitalmars-d mailing list