Bartosz Milewski seems to like D more than C++ now :)
Joseph Rushton Wakeling
joseph.wakeling at webdrake.net
Fri Sep 20 08:13:45 PDT 2013
On 20/09/13 16:48, H. S. Teoh wrote:
> A container should not be confused with a range. That way leads to
> dragons. :-P (It's rather unfortunate that built-in arrays conflate the
> two, it leads to a lot of wrong code that works only with arrays but not
> with "real" ranges.)
Built-in arrays are not _always_ ranges. Consider const(int[]) ... as I found
out recently, it's _not_ a range, because you can't popFront on a const entity.
More information about the Digitalmars-d
mailing list