Best way to make Until! into string

Jonathan M Davis jmdavisProg at
Tue Jun 22 11:13:24 PDT 2010

Philippe Sigaud wrote:
> I got this error also while installing 2.047. I think the new definition
> of a forward range asks for a .save() member. And I guess some ranges
> where not converted. std.range.repeat is one, like cycle. It seems like
> Until is another.
> Maybe for repeat/cycle that was a conscious decision? I'll file a bug
> anyway.
> Philippe

I guess that would be one downside for things like forward range not being 
interfaces. I guess that that means that when you intend a particular range 
struct or class to be a particular type of range or ranges that you should 
probably include unittests to verify that they are. Well, as Andrei said in 
TDPL, too many unittests is almost enough.

In any case, it was hard enough figuring out how to make the result of 
until() useable in the first place. It's good to know that my solution of 
using array() is almost certainly still supposed to work. It may be 
something that I'll have to patch in my local phobos if I want my current 
program to be of much use...

Thanks for the help.

- Jonathan M Davis

More information about the Digitalmars-d-learn mailing list