
5 Sep
2006
5 Sep
'06
5:05 p.m.
On Fri, 1 Sep 2006 15:26:11 -0700, "Gregory Dai" <gregory.dai@gmail.com> wrote:
Well, I don't have definitive proof, but that's possible from my experience.
E.g., we have many classes with ctors like this: ctor(..., std::string const& s = std::string()); More than a few developers had such experience that a crash could well be made disappear by changing the type of "s" to char const* (and, of course, passing whatever the string as string.c_str() to the ctor).
That experience has been given a specific name: "programming by coincidence". -- [ Gennaro Prota. C++ developer, Library designer. ] [ For Hire http://gennaro-prota.50webs.com/ ]