|
Boost : |
From: Gregory Dai (gregory.dai_at_[hidden])
Date: 2006-09-07 20:27:20
On 9/5/06, Gennaro Prota <gennaro_prota_at_[hidden]> wrote:
>
> On Fri, 1 Sep 2006 15:26:11 -0700, "Gregory Dai"
> <gregory.dai_at_[hidden]> 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".
I admit I'm guilty of that, as well as some of my colleagues. But, as in
life, one may not be smart and experienced enough nor have the time to get
to the bottom of everything in programming.
-- > [ Gennaro Prota. C++ developer, Library designer. ] > [ For Hire http://gennaro-prota.50webs.com/ ] > > _______________________________________________ > Unsubscribe & other changes: > http://lists.boost.org/mailman/listinfo.cgi/boost > -- Thanks, Greg
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk