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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,703c4f68db81387d X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Alex R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: Teaching new tricks to an old dog (C++ -->Ada) Date: Wed, 09 Mar 2005 16:20:14 +0100 Message-ID: <422F142E.9050909@mailinator.com> References: <4229bad9$0$1019$afc38c87@news.optusnet.com.au> <1110032222.447846.167060@g14g2000cwa.googlegroups.com> <871xau9nlh.fsf@insalien.org> <3SjWd.103128$Vf.3969241@news000.worldonline.dk> <87r7iu85lf.fsf@insalien.org> <1110052142.832650@athnrd02> <1110284070.410136.205090@o13g2000cwo.googlegroups.com> <395uqaF5rhu2mU1@individual.net> <1110377260.350158.58730@z14g2000cwz.googlegroups.com> <422f0c08$1_1@baen1673807.greenlnk.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net +SVj3QViI+o+1uN8V7bjXAsoJluk3t/vIyr50oWdYzPAQ6z2g= User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en In-Reply-To: <422f0c08$1_1@baen1673807.greenlnk.net> Xref: g2news1.google.com comp.lang.ada:8936 Date: 2005-03-09T16:20:14+01:00 List-Id: Martin Dowie wrote: > Hans Malherbe wrote: >>Can you pass pointers to these functions around? > > > Yes, you can pass 'pointers' to functions around - this is being enhanced > futher in Ada2005, so that at compile time you can guarentee never to > pass a 'NULL' value. This is something I don't fully understand. IFAIK, procedure Proc (Blah : access Some_Type); access parameters raise an excepcion if null. So I don't get what adds to the language the Blah : not null access ... construct.