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,9e87e366cae15081 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.germany.com!feeder.news-service.com!feeder1.cambrium.nl!feed.tweaknews.nl!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: if Restrict_Func /= null confusion References: <95f36a62-b94c-4211-896a-300fa98932b7@x41g2000hsb.googlegroups.com> Date: Sun, 30 Mar 2008 23:36:02 +0200 Message-ID: <877ifj99od.fsf@ludovic-brenta.org> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:vGwsIWyOIZn+21rRF4VhAREuxN0= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Tele2 X-Trace: DXC=nSf@SFGbfIiVgFdUFoS8Sa6`Y6aWje^YjgcXjYPW_FRdJ^hai9M\[kdP;n=XPSb>QcIXm6f4hTmD` Xref: g2news1.google.com comp.lang.ada:20654 Date: 2008-03-30T23:36:02+02:00 List-Id: ma740988@gmail.com writes: > I'm not following the conditional logic 'if (Restrict_Func / = > null)'. Not understanding the impetus behind the check for null. If Restrict_Func is null and you try to call the subprogram it designates, you get a Constraint_Error (ARM 4.9(13)). If you disable runtime checks, your program is likely to crash. -- Ludovic Brenta.