Re: [gtk-list] Re: checking status of GString
- From: Federico Mena Quintero <federico redhat com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: checking status of GString
- Date: Tue, 30 Nov 1999 12:05:14 -0500
> [ 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]