[Issue 346] 'is' operator inconsistant with arrays
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Sep 12 22:02:31 PDT 2006
http://d.puremagic.com/issues/show_bug.cgi?id=346
------- Comment #2 from ibisbasenji at gmail.com 2006-09-13 00:02 -------
Fair enough, and that does make sense. Although, having experimented a little
further, I see that 'is' is using the .ptr of the arrays (logical). This means
that any slice which begins at index 0 will also match true to an 'is'. Much
to be considered when writing templates with arrays in mind.
--
More information about the Digitalmars-d-bugs
mailing list