Checking if a string is null

Derek Parnell derek at psyc.ward
Wed Jul 25 17:39:59 PDT 2007


On Wed, 25 Jul 2007 14:29:47 +0100, Regan Heath wrote:

> Aside: If the location and length are identical you can short-circuit 
> the compare, returning true and ignoring the content, this could save a 
> bit of time on comparisons of large arrays.

I don't think this is such a good idea. How does one address the array of
four bytes at RAM location 4?
 

-- 
Derek Parnell
Melbourne, Australia
"Down with mediocrity!"


More information about the Digitalmars-d-learn mailing list