Copying copy?

monarch_dodra monarchdodra at gmail.com
Fri Jul 26 05:48:05 PDT 2013


On Friday, 26 July 2013 at 12:16:02 UTC, bearophile wrote:
> Ali Çehreli:
>
>> I agree. I would expect copy to maintain the same type.
>
> http://d.puremagic.com/issues/show_bug.cgi?id=10718
>
> Bye,
> bearophile

I reacted to your bug entry. I don't think copy's behavior should 
be *changed*. That would violate the entire "a string is a range 
of dchar" thing.

However, copy could be improved with the knowledge that a dchar 
can be streamed into a series of chars (EG, the way an 
appender!(char[]) can handle taking a dchar), and improved to 
handle cases it didn't handle before.


More information about the Digitalmars-d-learn mailing list