couple of really noob questions (ranges, toString)

Jesse Phillips jessekphillips+D at gmail.com
Mon Nov 1 16:30:09 PDT 2010


Michael Woods Wrote:

> Thanks for your replies, bearophile and Jesse Phillips.  :)
> 
> Jesse, that makes a lot more sense, now.  Thanks a lot for clearing
> that up for me.
> 
> Mike W

I kept making the mistake of trying to use containers as a range too (end up creating a reset function to bring it back to the beginning).

Also note that the usage for getting a range will look like:

foreach(item; myData[]) ...


And if you want to track it
http://d.puremagic.com/issues/show_bug.cgi?id=5154


More information about the Digitalmars-d-learn mailing list