On 03-Jul-2001 Lars Gullik Bjønnes wrote:

> I belive that an
> 
> lyx::Assert(pointer);
> 
> should be added to all methods that take a pointer as arg and that
> require this pointer to be != 0.

Well yes I just think that in your case the pointer can only be NULL
if we run out of memory, isn't it? And then we're fucked anyway (well
it really shouldn't happen on a well configured UNIX system, should it?
(I was telling about asserting on the LyXText)

> an "if (!pointer) return;" is just band-aid and hides bug/real
> problems instead of helping to find them.
> 
> Note Jürgen, this is not aimed at you, but is a more general comment.

Sure I never use the above construct, do I? #:O)

        Jürgen

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen Vigna        E-Mail:  [EMAIL PROTECTED]
Italienallee 13/N       Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen           Web:     http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Women are like elephants to me: I like to look at them, but I wouldn't
want to own one.
                -- W.C. Fields

Reply via email to