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-Thread: 103376,c58d23b838cc6510 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx02.iad01.newshosting.com!newsfeeds.sol.net!posts.news.twtelecom.net!nnrp2.twtelecom.net!not-for-mail From: "Matthew Heaney" Newsgroups: comp.lang.ada References: Subject: Re: Ada0Y anonymous access to self type Date: Thu, 30 Sep 2004 16:47:00 -0400 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Message-ID: <415c6e25$0$91007$39cecf19@news.twtelecom.net> Organization: Time-Warner Telecom NNTP-Posting-Date: 30 Sep 2004 20:35:49 GMT NNTP-Posting-Host: fe18f624.news.twtelecom.net X-Trace: DXC=9Cm47fkDR9F4bRofF\;X]@C_A=>8kQj6MhHXa^^g6TZD<4TLheeGkdAdYZAA8S: "Wojtek Narczynski" wrote in message news:pan.2004.09.30.20.31.43.819322@power.com.pl... > > type Foo_Type; > > -- This compiles > type Bar_Type is record > Foo : access Foo_Type; > end record; > > -- This does not > type Foo_Type is record > Next : access Foo_Type; > end record; > > For the Foo_Type record the compiler complains that "type declaration > cannot refer to itself", but does this restriction serve any purpose? > > There was something about taming the "access types proliferation" in Ada0Y... Leave in the forward declaration of type Foo_Type, and see if that compiles.