From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ec21c3c7cdc7ff3e X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!news.glorb.com!newspeer2.se.telia.net!se.telia.net!masternews.telia.net.!newsb.telia.net.POSTED!not-for-mail From: =?ISO-8859-1?Q?Bj=F6rn_Persson?= User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: private types References: <1142279908.327131.230200@j52g2000cwj.googlegroups.com> <1259548.CMTukHGvVZ@linux1.krischik.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Date: Sun, 19 Mar 2006 15:08:34 GMT NNTP-Posting-Host: 83.250.106.90 X-Complaints-To: abuse@telia.com X-Trace: newsb.telia.net 1142780914 83.250.106.90 (Sun, 19 Mar 2006 16:08:34 CET) NNTP-Posting-Date: Sun, 19 Mar 2006 16:08:34 CET Organization: Telia Internet Xref: g2news1.google.com comp.lang.ada:3450 Date: 2006-03-19T15:08:34+00:00 List-Id: Peter C. Chapin wrote: > Martin Krischik wrote in > news:1259548.CMTukHGvVZ@linux1.krischik.com: >>Of course programming C or C++ on such an OS could be quite >>challenging (Write to (void*)0 and you mess up your Proccess >>Information Descriptor). > > The C/C++ standard does not require NULL pointers to be represented by all > zero bits either. The null pointer constant, (void*)0, might be translated > into 0xFFFFFFFF or some other value. Well, does the standard require that (void*)0 == NULL? What if I wanted a pointer to address zero on this hypothetical OS? How would I get that if (void*)0 gets transformed to a non-zero NULL? -- Bj�rn Persson PGP key A88682FD omb jor ers @sv ge. r o.b n.p son eri nu