comp.lang.ada
 help / color / mirror / Atom feed
* limited /non-limited tagged type
@ 2011-03-04 18:56 Hacid
  2011-03-04 19:54 ` Edward Fish
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Hacid @ 2011-03-04 18:56 UTC (permalink / 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.



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

end of thread, other threads:[~2011-03-05 16:48 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-04 18:56 limited /non-limited tagged type Hacid
2011-03-04 19:54 ` 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

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