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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3404439c05a9ac3 X-Google-Attributes: gid103376,public From: Robert A Duff Subject: Re: Generic package array parameter Date: 1999/11/13 Message-ID: #1/1 X-Deja-AN: 548264804 Sender: bobduff@world.std.com (Robert A Duff) References: <382255CE.F5CB679A@erols.com> <382c7b29_1@news1.prserv.net> Organization: The World Public Access UNIX, Brookline, MA Newsgroups: comp.lang.ada Date: 1999-11-13T00:00:00+00:00 List-Id: "Matthew Heaney" writes: > Don't criticize what you don't understand. > > (Anonymous array types aren't allowed because, what would "=" mean for > the type? What would ":=" mean for the type? > > function (L, R : ???) return Boolean; > > What's the type of the formal parameters of function "="? Well, for regular run-of-the-mill anonymous array types, the answer is that ??? is the anonymous array type. Eg: X: array(Integer range 1..10) of Character := "abcdefghij"; ... if X = "Hello, world" then ... But I think Tucker's idea (never use anonymous array types) is better, at least as a rule of thumb. - Bob