comp.lang.ada
 help / color / mirror / Atom feed
From: Hacid <chadi.alkurdi@gmail.com>
Subject: limited /non-limited tagged type
Date: Fri, 4 Mar 2011 10:56:26 -0800 (PST)
Date: 2011-03-04T10:56:26-08:00	[thread overview]
Message-ID: <40bfb845-7868-4536-886b-496e8dc82cb4@hd10g2000vbb.googlegroups.com> (raw)

Hi,

I haven't found an existing topic about this, so I ask my question :

I develop a package for colleagues. In this package I define a tagged
type. I want to prevent them from doing assignments on this type. But
I want to be able to do these assignments in my body.

I understand why I can't define my type limited in the public part and
not limited in the private part. But is there a way to do what I
want ?

Something like :

package Foo is

   type Object is tagged private;

   function ":=" (Left : out Object,; Right : in Object) is abstract;
-- I know this looks strange

end Foo;

Thanks.



             reply	other threads:[~2011-03-04 18:56 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-04 18:56 Hacid [this message]
2011-03-04 19:54 ` limited /non-limited tagged type Edward Fish
2011-03-04 21:18   ` Hacid
2011-03-05  0:17     ` Edward Fish
2011-03-04 20:10 ` Georg Bauhaus
2011-03-04 21:55   ` Hacid
2011-03-04 22:21     ` Hacid
2011-03-05  1:20       ` Randy Brukardt
2011-03-04 22:22     ` Georg Bauhaus
2011-03-04 22:40       ` Hacid
2011-03-05  1:29         ` Georg Bauhaus
2011-03-04 23:34 ` Adam Beneschan
2011-03-05  3:26 ` Adam Beneschan
2011-03-05 16:48   ` Hacid
replies disabled

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