Re: [Cppunit-devel] A new architecture ?
Brought to you by:
blep
From: Baptiste L. <bl...@cl...> - 2001-11-04 12:36:28
|
----- Original Message ----- From: "Duane Murphy" <dua...@ma...> To: "Bastiaan Bakker" <bas...@li...> Cc: "CppUnit Developers" <cpp...@li...> Sent: Monday, October 22, 2001 10:23 PM Subject: Re: [Cppunit-devel] A new architecture ? > --- At Mon, 22 Oct 2001 22:51:51 +0200, Bastiaan Bakker wrote: > > >Duane Murphy wrote: > > [...] > The part that is incorrect is that references can be NULL. A NULL > reference is illegal. Through programming error you can certainly create > a NULL reference, but that would be a programming error. ( There was an > article in CUJ a few months ago in the "Conversations" column by Jim > Hyslop and Herb Sutter but I cant seem to find an online reference to > that article.) Pointers on the other hand can legally be NULL. Some of the rules I inferred from CppUnit source are: - No public method shall return NULL - No public method call shall use NULL as a parameter. If you spot place those rules fail to be respected, let us know and we'll try to find some work around (likely using NullObject, or exception to report error). Baptiste. --- Baptiste Lepilleur <gai...@fr...> http://gaiacrtn.free.fr/index.html Language: English, French (Well, I'm French). |