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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Alejandro R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: 'Class'Class'Class'Class ad libitum Date: Tue, 13 Sep 2016 18:10:43 +0200 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 13 Sep 2016 16:10:39 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="bc686c1890d5fda24d69bb608fea27b4"; logging-data="11734"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18p2foN0kGkuplfU5c2B9wF" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 In-Reply-To: Cancel-Lock: sha1:6v+usKO7XMQhFR79zeS2fKiAo2c= Xref: news.eternal-september.org comp.lang.ada:31774 Date: 2016-09-13T18:10:43+02:00 List-Id: On 13/09/16 13:29, J-P. Rosen wrote: > Le 13/09/2016 à 12:43, Alejandro R. Mosteo a écrit : >> I get why this is legal: >> >> type X is tagged null record; >> >> subtype Y is X'Class; >> >> subtype Z is X'Class'Class'Class'Class; >> >> But can you think of any legitimate reason to use it besides obfuscation? >> > I guess this is allowed because nobody cared about complicated rules to > forbid it (mainly on the ground that it's useless, but harmless). There > are many things like that: > T'(T'(T'(X))) > X+0+0+0 > ... I like the qualified expression one...