Re: Unexpected comparison behavior change in 4.5.1

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 48772
interpreted = N
texte = Brian Fries wrote: > As for the derisive comments as to my sloppy coding practices and > implications that it was my fault that my thoroughly tested and bug free > long-standing code broke, these were not appreciated. When writing that > code, I specifically tested to see what result WebDNA returned when > testing for containment of an empty string.Although the docs are silent on the subject, the longstanding practice has always been to use [showif bob=] and [hideif bob!], based (I believe) on Grant's suggestion. I personally find it bizarre that anyone would consider the contains operator when testing for null strings. That may be because I come from the Perl world where an undefined and empty string are two very different beasts. In addition, the C function instr() would similarly work exactly like the 4.5.1 behavior: a given string will never contain an empty string, even if that string were empty.> > And this whole time, NOBODY has indicated that they had tried the code > to verify that my experience is not unique, which is all I really asked > for at the beginning. > FWIW, I did test your code and 4.5.0a _does_ yield a different answer than 4.5.1, so you are not alone in seeing the problem. You may be alone in triggering it, however, though that hardly helps you at all. ;~)John-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5748 ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Unexpected comparison behavior change in 4.5.1 (John Peacock 2003)
  2. Re: Unexpected comparison behavior change in 4.5.1 (Charles Kline 2003)
  3. Re: Unexpected comparison behavior change in 4.5.1 (Brian Fries 2003)
  4. Re: Unexpected comparison behavior change in 4.5.1 (Velma Kahn 2003)
  5. Re: Unexpected comparison behavior change in 4.5.1 (Clint Davis 2003)
  6. Re: Unexpected comparison behavior change in 4.5.1 (Clint Davis 2003)
  7. Re: Unexpected comparison behavior change in 4.5.1 (Charles Kline 2003)
  8. Re: Unexpected comparison behavior change in 4.5.1 (Velma Kahn 2003)
  9. Re: Unexpected comparison behavior change in 4.5.1 (Charles Kline 2003)
  10. Re: Unexpected comparison behavior change in 4.5.1 (Brian Fries 2003)
  11. Re: Unexpected comparison behavior change in 4.5.1 (Charles Kline 2003)
  12. Re: Unexpected comparison behavior change in 4.5.1 (Kenneth Grome 2003)
  13. Re: Unexpected comparison behavior change in 4.5.1 (Brian Fries 2003)
  14. Re: Unexpected comparison behavior change in 4.5.1 (Charles Kline 2003)
  15. Re: Unexpected comparison behavior change in 4.5.1 (Brian Fries 2003)
  16. Re: Unexpected comparison behavior change in 4.5.1 (Alain Russell 2003)
  17. Re: Unexpected comparison behavior change in 4.5.1 (Stuart Tremain 2003)
  18. Re: Unexpected comparison behavior change in 4.5.1 (Rob Marquardt 2003)
  19. Re: Unexpected comparison behavior change in 4.5.1 (Brian Fries 2003)
  20. Re: Unexpected comparison behavior change in 4.5.1 (Gary Krockover 2003)
  21. Re: Unexpected comparison behavior change in 4.5.1 (Alain Russell 2003)
  22. Re: Unexpected comparison behavior change in 4.5.1 (Tim Robinson 2003)
  23. Unexpected comparison behavior change in 4.5.1 (Brian Fries 2003)
Brian Fries wrote: > As for the derisive comments as to my sloppy coding practices and > implications that it was my fault that my thoroughly tested and bug free > long-standing code broke, these were not appreciated. When writing that > code, I specifically tested to see what result WebDNA returned when > testing for containment of an empty string.Although the docs are silent on the subject, the longstanding practice has always been to use [showif bob=] and [hideif bob!], based (I believe) on Grant's suggestion. I personally find it bizarre that anyone would consider the contains operator when testing for null strings. That may be because I come from the Perl world where an undefined and empty string are two very different beasts. In addition, the C function instr() would similarly work exactly like the 4.5.1 behavior: a given string will never contain an empty string, even if that string were empty.> > And this whole time, NOBODY has indicated that they had tried the code > to verify that my experience is not unique, which is all I really asked > for at the beginning. > FWIW, I did test your code and 4.5.0a _does_ yield a different answer than 4.5.1, so you are not alone in seeing the problem. You may be alone in triggering it, however, though that hardly helps you at all. ;~)John-- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5748 ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ John Peacock

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Modify Database (1998) Annoying character on writefile... (2004) [OT] JS Libraries (2007) WebCat2 beta 11 - new prefs ... (1997) WebCatalog books and othre resources (2001) [BULK] RE: [WebDNA] WebDNA for Windows Newbie Questions (2008) form (2002) [WebDNA] XML Help (2009) Bug Report, maybe (1997) Frames and WebCat (1997) Where's Cart Created ? (1997) format crash! (1997) WebCatalog can't find database (1997) [Ignore] Test (2002) OT: Poll Please (2002) CMSBuilder (2004) WebCat2: Formulas.db question (1997) [WebDNA] Cheers (2008) Security problems (2000) Which beta for w* 4.1 and a problem w/b12 (1999)