comp.lang.ada
 help / color / mirror / Atom feed
From: "Marc Enzmann" <Marc.Enzmann@web.de>
Subject: Re: Dot notation in Ada 2005
Date: 22 May 2006 01:19:42 -0700
Date: 2006-05-22T01:19:42-07:00	[thread overview]
Message-ID: <1148285982.023797.195260@y43g2000cwc.googlegroups.com> (raw)
In-Reply-To: <e4rms0$q0c$1@upsn250.cri.u-psud.fr>

Hm, somewhat familiar. Something like

   type My_Private_Class is private;
   ...
   procedure Do_Something (Argument : in out My_Private_Class);
   ...
private
   type My_Private_Class is tagged record
      ...
   end record;
   ...

can be called by
   ...
   An_Argument : My_Private_Class;
   ...
   Do_Something (An_Argument);
   ...

but not by
   ...
   An_Argument.Do_Something;

However, if My_Private_Class is not declared as private, then anything
goes....

What am I missing ???
(BTW: using gcc version 3.4.5 20050524 (prerelease) for GNAT GPL 2005
under Mac OS 10.4)




  reply	other threads:[~2006-05-22  8:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-19 10:14 Dot notation in Ada 2005 Philippe Tarroux
2006-05-20 12:16 ` Martin Carlisle
2006-05-22  6:50   ` Philippe Tarroux
2006-05-22  8:19     ` Marc Enzmann [this message]
2006-05-22 10:33       ` christoph.grein
2006-05-22 11:09         ` Marc Enzmann
2006-05-23 15:02     ` Martin Carlisle
replies disabled

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