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,UTF8 X-Google-Thread: 103376,b1ebfe7f8f5e385d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-01 03:09:28 PST Date: Thu, 01 May 2003 12:09:21 +0200 From: =?UTF-8?B?Um9kcmlnbyBHYXJjw61h?= 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: Re: Generic formal access types References: <3eb01630@epflnews.epfl.ch> <3eb0e397@epflnews.epfl.ch> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit NNTP-Posting-Host: lglpc31.epfl.ch Message-ID: <3eb0f253$1@epflnews.epfl.ch> X-Trace: epflnews.epfl.ch 1051783763 128.178.76.8 (1 May 2003 12:09:23 +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!newsfeed.freenet.de!solnet.ch!solnet.ch!news.imp.ch!news.imp.ch!news-zh.switch.ch!epflnews.epfl.ch!not-for-mail Xref: archiver1.google.com comp.lang.ada:36798 Date: 2003-05-01T12:09:21+02:00 List-Id: Well, the workaround has another problem: the compiler cannot check if the type I pass in the instantiation is an access type nor if the "Null_Value" object is really null... But I suppose that is why we call it a "workaround". ;^) In the end, I think I will stick to my own workaround, but thanks again for your ideas. Rodrigo Rodrigo GarcĂ­a wrote: > That seems a nice workaround, although I still have to pass two > parameters during instantiation. I will give it a try! > > Thanks, > > Rodrigo > > > > Chad R. Meiners wrote: > > How about > > generic > type Access_Type is private; > Null_Value : Access_Type; > > -CRM >