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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2f84446733b06aca X-Google-Attributes: gid103376,public From: mg@harp.camb.inmet.com (Mitch Gart) Subject: Re: Converting C++ class to Ada Date: 1996/12/20 Message-ID: #1/1 X-Deja-AN: 205097011 sender: news@inmet.camb.inmet.com (USENET news) x-nntp-posting-host: harp.camb.inmet.com references: followup-to: comp.lang.ada organization: Intermetrics, Inc. newsgroups: comp.lang.ada Date: 1996-12-20T00:00:00+00:00 List-Id: Jon S Anthony (jsa@alexandria) wrote: : CE is raised if a null value is passed to an access _parameter_. (snip) : A good thing IMO on both counts. See in particular 11.5(11) I think this is a mistake in Ada 95. Not allowing null for an access parameter makes it harder to interface to C: procedure P(param: access thing); pragma import(C, P); You can't call P(null) even though the C function may have semantics defined for null. You have to make up a named access type for the parameter. Users of Win32Ada and X11Ada will notice that the bindings contain access parameters in many places. This is a mistake that needs fixing given the above Ada 95 rule. - Mitch Gart - mg@inmet.com