From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2586a992fd399bf8,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!hd10g2000vbb.googlegroups.com!not-for-mail From: Hacid Newsgroups: comp.lang.ada Subject: limited /non-limited tagged type Date: Fri, 4 Mar 2011 10:56:26 -0800 (PST) Organization: http://groups.google.com Message-ID: <40bfb845-7868-4536-886b-496e8dc82cb4@hd10g2000vbb.googlegroups.com> NNTP-Posting-Host: 62.35.74.134 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1299264986 9248 127.0.0.1 (4 Mar 2011 18:56:26 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 4 Mar 2011 18:56:26 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: hd10g2000vbb.googlegroups.com; posting-host=62.35.74.134; posting-account=WWXKmwoAAABMGIRzC01nO809MBj4MWaf User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; fr; rv:1.9.2.14) Gecko/20110221 Ubuntu/10.10 (maverick) Firefox/3.6.14,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:18803 Date: 2011-03-04T10:56:26-08:00 List-Id: 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.