[phobos] phobos commit, revision 1930

Steve Schveighoffer schveiguy at yahoo.com
Thu Aug 26 10:32:07 PDT 2010


incidentally, this also fixes the problem of being able to overwrite string 
literals ;)

-Steve



----- Original Message ----
> From: Steve Schveighoffer <schveiguy at yahoo.com>
> To: Phobos <phobos at puremagic.com>
> Sent: Thu, August 26, 2010 1:30:19 PM
> Subject: Re: [phobos] phobos commit, revision 1930
> 
> Sure, we can do that.
> 
> -Steve
> 
> 
> 
> ----- Original Message  ----
> > From: Andrei Alexandrescu <andrei at erdani.com>
> > To: Steve  Schveighoffer <schveiguy at yahoo.com>
> > Sent: Thu,  August 26, 2010 1:26:58 PM
> > Subject: Re: [phobos] phobos commit, revision  1930
> > 
> > On 8/26/10 10:24 PDT, Steve Schveighoffer wrote:
> >  > On that topic a bit,  calling clear on an Appender!string allows you  to 
> >overwrite
> > > immutable  data.  Do we care too  much?  I think we can just mark the  
>clear
> > > function as  @system and call it a day...
> > 
> > I think it's  important to  preserve immutable. Let's guard clear with static 
>if 
>
> >(!is(T ==   const) && !is(T == immutable)). Thanks!
> > 
> > Andrei
> > 
> 
> 
>       
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos
> 


      


More information about the phobos mailing list