Extended Type Design.

Andrei Alexandrescu (See Website For Email) SeeWebsiteForEmail at erdani.org
Fri Mar 16 15:27:15 PDT 2007


Derek Parnell wrote:
> On Fri, 16 Mar 2007 14:03:13 -0700, Andrei Alexandrescu (See Website For
> Email) wrote:
> 
>> Sean Kelly wrote:
>>> For what it's worth, I like: 'final', 'view', and 'const' the best. 
>>> They're all short and meaningful, given the intent for each.
>> The problem with 'view' is that it's a noun, 
> 
> As in "to view or not to view, that is the question" <g>
> 
>> while final and const are adjectives. 
> 
> So how does the argument from NLP about 'super' being used to qualify nouns
> sound now? 

I must not see the connection. "super const int" is a suggestive 
collocation; "view int" is not.

>> It's very awkward to use 'view':
>> view int * p = &x; // huh?
> 
> But this isn't ... ?
> 
>   super const int * p = &x; 
> 
> How about ...
> 
>   const int * const p = &x;

That's final and expresses something entirely different.


Andrei




More information about the Digitalmars-d mailing list