More range woes: composed ranges are unsafe to return from functions
H. S. Teoh
hsteoh at quickfur.ath.cx
Tue Oct 16 12:33:20 PDT 2012
On Tue, Oct 16, 2012 at 08:44:56PM +0200, monarch_dodra wrote:
[...]
> No idea either, but I'll volunteer to investigate ;)
>
> I agree with Jonathan though, sounds like a bug somewhere. There
> is no reason for your code to fail.
>
> I'll post back if I find anything.
Another data point: if I move the .joiner call out of cprod() into
main(), then there is no problem. Could it be that something in joiner
is breaking somehow, when returned from a function?
T
--
Государство делает вид, что платит нам зарплату, а мы делаем вид, что работаем.
More information about the Digitalmars-d
mailing list