Re: sort and shared

2011-01-23 Thread Adam Conner-Sax
Thanks. I'll wait for now since (gulp!) casting away shared just for the sort works and I'm not sure what I'm doing wrong with the patching. Adam

Re: sort and shared

2011-01-21 Thread Steven Schveighoffer
On Thu, 20 Jan 2011 21:14:06 -0500, Adam Conner-Sax adam_conner_...@yahoo.com wrote: The following code: import std.algorithm; class Foo { private: int id_; public: shared int id() const { return id_; } } static bool compare(in shared(Foo) a, in shared(Foo) b) { return (a.id()

Re: sort and shared

2011-01-21 Thread Adam Conner-Sax
Thanks! I tried to apply that patch and rebuild phobos (I changed the file, remade libphobos2.a, put it in /usr/local/lib). That worked but I still get my error. I might have done the applying or rebuilding wrong though, especially since once I did that, even with the casting away of shared, I

Re: sort and shared

2011-01-21 Thread Steven Schveighoffer
On Fri, 21 Jan 2011 10:04:56 -0500, Adam Conner-Sax adam_conner_...@yahoo.com wrote: Thanks! I tried to apply that patch and rebuild phobos (I changed the file, remade libphobos2.a, put it in /usr/local/lib). That worked but I still get my error. I might have done the applying or

Re: sort and shared

2011-01-21 Thread Steven Schveighoffer
On Fri, 21 Jan 2011 10:09:18 -0500, Steven Schveighoffer schvei...@yahoo.com wrote: On Fri, 21 Jan 2011 10:04:56 -0500, Adam Conner-Sax adam_conner_...@yahoo.com wrote: Thanks! I tried to apply that patch and rebuild phobos (I changed the file, remade libphobos2.a, put it in