comp.lang.ada
 help / color / mirror / Atom feed
From: Andy Askey <ajaskey@mindspring.com>
Subject: Checking Access Parameters to Procedures
Date: 2000/03/06
Date: 2000-03-07T02:50:45+00:00	[thread overview]
Message-ID: <q6r8cscb2h8c9pmjhei7q1fk8hn6gimfpj@4ax.com> (raw)

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




             reply	other threads:[~2000-03-06  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-06  0:00 Andy Askey [this message]
2000-03-06  0:00 ` Checking Access Parameters to Procedures David Botton
2000-03-07  0:00 ` Mark Lundquist
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox