Re: [gtk-list] Re: checking status of GString



>  [ Actually, assumming that NULL will have a bit-pattern of
>    all zeros is not standard ANSI C, though it works
>    universally on the platforms where GTK+ runs. ]

This is a runtime issue, not a compile-time issue.  The compiler must
spit code to mangle zeros-in-pointers to whatever null pointer
representation the machine uses.  Otherwise 

	int i = 0;
	void *foo;

	foo = i;

wouldn't work.  Whether it is good practice to use such code is a
completely different issue :-)

  Federico



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