range.save

Rikki Cattermole via Digitalmars-d digitalmars-d at puremagic.com
Thu Nov 19 18:47:11 PST 2015


On 20/11/15 10:30 AM, Freddy wrote:
> Does anyone else think range.save is a hack? I often find myself
> forgetting to call range.save in my generic code with my unittests
> working fine. Also, working with a range of ranges may forget to call
> range.save.(Ex: [1,2,4].repeat)

Not really.
If you forget it, then things won't work since it'll be empty ;)


More information about the Digitalmars-d mailing list