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:

syntax question, not in online refernce (1997) interactive .pdf files and WebCatalog (2000) Record size (1998) Searching an Email database (1997) PCS Frames (1997) newbie Q: [cart] documentation (1999) Re:2nd WebCatalog2 Feature Request (1996) Random Order Sort? (2000) Cookie ... Less Navigation (2001) how to do multiple prices/item? (1998) Re:no template caching (1997) Quickly reordering search results (2001) Security Tip (1996) Configuring E-mail (1997) WebCatalog 4.0.2b5 available (2000) [WriteFile] problems (1997) WebCat & WebTen (1997) Summaries (1999) Country & Ship-to address & other fields ? (1997) Email Format (1998)