Am 26.08.2012 23:33, schrieb Ali Çehreli:
On 08/26/2012 02:21 PM, David wrote:> I tried to implement a .save method, which uhm, just > didn't work together with RefRange (isForwardRange!T succeeded, but > isForwardRange!(RefRange!T) failed). What version of dmd? What is the code? When I add the following lines to the beginning of main() of the program that I have used in my other post, they both pass: static assert(isForwardRange!TestRange); static assert(isForwardRange!(RefRange!TestRange)); Ali
DMD 2.059 and: https://github.com/Dav1dde/BraLa/blob/7440688038bfd50a06fd9a49b8e9b6d08c7b4c28/brala/utils/queue.d
But I don't care anylonger, I rewrote the whole Queue class (now it's a "real" queue, e.g. you can wait until all items are used up, with core.sync.condtion), I also don't feel like wasting more time in ranges, when I don't need them.
