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,8de940f14e471675,start X-Google-Attributes: gid103376,public From: Andy Askey Subject: Checking Access Parameters to Procedures Date: 2000/03/06 Message-ID: #1/1 X-Deja-AN: 594089825 Content-Transfer-Encoding: 7bit Organization: MindSpring Enterprises X-Server-Date: 7 Mar 2000 02:50:45 GMT Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-03-07T02:50:45+00:00 List-Id: Another, probably simple, question.... I want to check if a value passed into a procedure is NULL. For example: package tst_pkg is type my_ttype is tagged private; procedure tst_proc(this : access my_ttype'class); private type my_ttype is tagged record i : integer; end record; end tst_pkg; package body tst_pkg is procedure tst_proc(this : access my_ttype'class) is begin if (this = NULL) then .... end if; end tst_proc; end tst_pkg; This does not compile so I tried every combination I can think of and nothing worked so far. How can I test if "this" is a NULL pointer? Thanx. -- Andy Askey ajaskey@mindspring.com