www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Phobos, std.typecons: arrays of Rebindable

reply pc <peng2cheng2 yahoo.com> writes:
I had problems sorting an array of Rebindable!(..).   Please see attached file.
 

Am I completely missing the point or is this a bug? Also, a shown in the file,
a hack to make this work may depend on a bug? in std.algoritm's swap function.
But I am way over my head. Just trying to help.  
Dec 26 2009
parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
pc wrote:
 I had problems sorting an array of Rebindable!(..).   Please see
 attached file.
 
 Am I completely missing the point or is this a bug? Also, a shown in
 the file, a hack to make this work may depend on a bug? in
 std.algoritm's swap function. But I am way over my head. Just trying
 to help.

Thanks for raising the issue. I think it's a bug in Phobos. Could I impose on you to post the bug to our bugzilla? http://d.puremagic.com/issues/ Don't forget the attachments. Thanks! Andrei
Dec 26 2009