[Issue 4727] Passing std.concurrency.receive() a function of type Variant causes a static assert

2010-08-25 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4727 --- Comment #2 from Tim Keating itsallaboutthe...@gmail.com 2010-08-25 21:20:31 PDT --- Ah, it's an off-by-one error. The index is 0-based, but T.length is 1-based. That expression should be: if ( i T.length-1 ) -- Configure issuemail:

[Issue 4727] Passing std.concurrency.receive() a function of type Variant causes a static assert

2010-08-25 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4727 --- Comment #3 from Tim Keating itsallaboutthe...@gmail.com 2010-08-25 21:36:31 PDT --- ... and that if might want to be a static if also. I'm not sure why straight if wasn't working for me, but it was not successfully evaluating the