formattedWrite writes nothing
    anonymous via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Fri May  2 03:27:53 PDT 2014
    
    
  
On Friday, 2 May 2014 at 10:23:03 UTC, Andrej Mitrovic via 
Digitalmars-d-learn wrote:
> Ouch, ouch, ouch! What's happening is that the 'clear' Appender 
> method
> is only compiled-in if the data is mutable, otherwise you end up
> calling the object.clear UFCS function. So don't use clear here.
>
> I don't know if this is a case of poor method naming or another
> downside of UFCS. Luckily 'clear' is being renamed to 'destroy' 
> in the
> object module, so this specific case will not become a problem 
> in the
> future.
I'd say clear should be @disabled in Appender for non-mutable 
data.
    
    
More information about the Digitalmars-d-learn
mailing list