Why doesn't this work in D2?
    BCS 
    none at anon.com
       
    Mon Jun 28 06:48:16 PDT 2010
    
    
  
Hello Jacob,
> On 2010-06-28 02:28, BCS wrote:
> 
>> One solution would be to have templates strip off const/immutable
>> from the top level of args.
>> 
[...]
>> This solution would match the proposal that popped up a while ago to
>> allow value assignment from const/immutable to mutable.
>> 
> I don't think I understand what you're showing here. How would I strip
> off the const/immutable with a template ?
> 
I was proposing a language change Sorry for any confusion. The idea is that 
unless the user ask for it explicitly, there is no particular reason to preserve 
const/immutable for the value portion (true value types and the first level 
of references/pointers) of arguments.
-- 
... <IXOYE><
    
    
More information about the Digitalmars-d-learn
mailing list