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,LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,842accb6a7d76669 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-09 20:39:36 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!ppp-1-20.cvx1.telinco.NET!not-for-mail From: "Nick Roberts" Newsgroups: comp.lang.ada Subject: Re: List container strawman 1.1 Date: Sat, 10 Nov 2001 00:47:56 -0000 Message-ID: <9sib26$13aeg3$4@ID-25716.news.dfncis.de> References: <3BE301D1.4010106@telepath.com> <9s6d45$bd2$1@nh.pace.co.uk> <9s74eg$12b2bq$5@ID-25716.news.dfncis.de> NNTP-Posting-Host: ppp-1-20.cvx1.telinco.net (212.1.136.20) X-Trace: fu-berlin.de 1005367175 37042691 212.1.136.20 (16 [25716]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Xref: archiver1.google.com comp.lang.ada:16199 Date: 2001-11-10T00:47:56+00:00 List-Id: "Ted Dennison" wrote in message news:EXSG7.18921$xS6.30449@www.newsranger.com... > In article <9s74eg$12b2bq$5@ID-25716.news.dfncis.de>, Nick Roberts says... > (Talking about adding Text I/O routines for lists to the package) > >But this can be done, and should be done, by declaring 'read' and 'write' > >procedures for the List_Type, conforming to what RM95 13.13.2 requires, and > >then using representation clauses to replace the default List_Type'Read and > >List_Type'Write attributes. This way, the required behaviour becomes > >implicit and automatic. > > The problem with doing that is that it must be done in the same package where > the type is declared. In this case, that's the generic list package. If this is > something compiler vendors provide, or something that gets put under "Ada.*" one > day, modifying the body may not be possible. But why is that a problem? Provided the compiler vendor gets the implementation (of 'Read and 'Write) right, why should anyone need to modify it? -- Nick Roberts