[Issue 346] 'is' operator inconsistant with arrays

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 12 22:04:25 PDT 2006


http://d.puremagic.com/issues/show_bug.cgi?id=346





------- Comment #3 from ibisbasenji at gmail.com  2006-09-13 00:04 -------
(In reply to comment #2)
> 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.
> 

Gah, no, I retract that.  It does check the other properties, just in case. 
This is good.  :)  I can work with that.


-- 




More information about the Digitalmars-d-bugs mailing list