comp.lang.ada
 help / color / mirror / Atom feed
* Checking Access Parameters to Procedures
@ 2000-03-06  0:00 Andy Askey
  2000-03-06  0:00 ` David Botton
  2000-03-07  0:00 ` Mark Lundquist
  0 siblings, 2 replies; 3+ messages in thread
From: Andy Askey @ 2000-03-06  0:00 UTC (permalink / 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




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-03-07  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-03-06  0:00 Checking Access Parameters to Procedures Andy Askey
2000-03-06  0:00 ` David Botton
2000-03-07  0:00 ` Mark Lundquist

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