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:
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)