[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: no constants please



Tom Lord <lord@xxxxxxx> writes:

> Not
> 
> 	x = SCHEME_FALSE;
> 
> but:
> 
> 	SCHEME_MAKE_FALSE (&x, instance);
> 
> because, you never know, those constants might be heap allocated.

And don't forget SCHEME_IS_FALSE(x).

Because you should not assume that C equality is the right test.