funny bug with input range interface and toString

2010-12-13 Thread spir
Hello, I have a strange bug with an input range interface. Initially, I had a (rather big) struct called Text with loads of working unittests. When adding a range interface, noting worked anymore, any test ran into an infinite loop (the terminal writes pages of '[') ending with segfault.

Re: funny bug with input range interface and toString

2010-12-13 Thread Nick Voronin
On Mon, 13 Dec 2010 11:24:48 +0300, spir denis.s...@gmail.com wrote: I have a strange bug with an input range interface. Initially, I had a (rather big) struct called Text with loads of working unittests. When adding a range interface, noting worked anymore, any test ran into an infinite

Re: funny bug with input range interface and toString

2010-12-13 Thread spir
On Mon, 13 Dec 2010 17:37:19 +0300 Nick Voronin elfy...@gmail.com wrote: On Mon, 13 Dec 2010 11:24:48 +0300, spir denis.s...@gmail.com wrote: I have a strange bug with an input range interface. Initially, I had a (rather big) struct called Text with loads of working unittests. When

Re: funny bug with input range interface and toString

2010-12-13 Thread Nick Voronin
On Mon, 13 Dec 2010 21:43:33 +0300, spir denis.s...@gmail.com wrote: I use rdmd for quick testing (because it links automagically). compile: dmd -w -c filename.d build: rdmd -w -offilename -debug -unittest --build-only filename.d Thanks. I missed -of option. -- Using Opera's revolutionary