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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9e87e366cae15081,start X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!x41g2000hsb.googlegroups.com!not-for-mail From: ma740988@gmail.com Newsgroups: comp.lang.ada Subject: if Restrict_Func /= null confusion Date: Sun, 30 Mar 2008 13:58:02 -0700 (PDT) Organization: http://groups.google.com Message-ID: <95f36a62-b94c-4211-896a-300fa98932b7@x41g2000hsb.googlegroups.com> NNTP-Posting-Host: 192.91.147.35 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1206910683 7987 127.0.0.1 (30 Mar 2008 20:58:03 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 30 Mar 2008 20:58:03 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: x41g2000hsb.googlegroups.com; posting-host=192.91.147.35; posting-account=sobfpgkAAADijpnQisCvqN_d-m1lQV06 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:20648 Date: 2008-03-30T13:58:02-07:00 List-Id: Well folks its been at least 4 years since I've perused and/or written Ada source. That aside I'm perusing source code written in Ada. So consider: -- used to restrict a variable within a range -- for example: -PI to +PI type Restrict_Function is access function (X: Real4) return Real4; type Filt_Data is record Restrict_Func : Restrict_Function ; end record ; -- within a procedure we have Fdata : Filt_Data; Restrict_Func : Restrict_Function := FData.Restrict_Func ; if Restrict_Func /= null then -- stuff endif At issue: I'm not following the conditional logic 'if (Restrict_Func / = null)'. Not understanding the impetus behind the check for null.