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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b1ebfe7f8f5e385d,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-04-30 11:30:13 PST Date: Wed, 30 Apr 2003 20:30:07 +0200 From: =?ISO-8859-1?Q?Rodrigo_Garc=EDa?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020513 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Generic formal access types Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: lglpc31.epfl.ch Message-ID: <3eb01630@epflnews.epfl.ch> X-Trace: epflnews.epfl.ch 1051727408 128.178.76.8 (30 Apr 2003 20:30:08 +0200) Organization: EPFL Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.mailgate.org!news-zh.switch.ch!epflnews.epfl.ch!not-for-mail Xref: archiver1.google.com comp.lang.ada:36776 Date: 2003-04-30T20:30:07+02:00 List-Id: Does anybody know why Ada does not have something like: generic type Access_Type is access (<>); -- ? I would like to specify in a generic package that it should be instantiated by an access type, no matter what type it is pointing to. Ok, it is not very useful to have an access type if you do not know its content, but the package implements a list and I am just storing them. I "need" that because I want to return the value "null" from a function in the generic package that returns "Access_Type". There is a possible workaround: generic type Element is (<>); type Access_Type is access Element; But I do not like it because it forces me to pass also the "Element" in the instantiation. Any support for a possible proposal? Rodrigo