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 PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 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:
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 PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 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:
[ShowNext] (1997)
PSC recommends what date format yr 2000??? (1997)
WCS Newbie question (1997)
Include error (2000)
Re:quit command on NT (1997)
unsubscribe (1997)
Maybe off topic but how to charge (1997)
General WebCatalog Questions (1997)
Emailer errors (1997)
Weird error/limit - something amiss? (1997)
[WebDNA] [Orderfile] problem (2009)
WebStar Secure on other machine (1997)
different show next (1997)
AAgghh!! Help, please. SSL strikes again. (1997)
Searchable list archive (1997)
WebCatalog for Postcards ? (1997)
What am I doing wrong? (2000)
& in Lookups (1997)
Dummy Credit Card Number for debug? (1997)
Timeout question .. (2003)