From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.0 required=3.0 tests=BAYES_40,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:a37:4f12:: with SMTP id d18mr5052231qkb.42.1611659702263; Tue, 26 Jan 2021 03:15:02 -0800 (PST) X-Received: by 2002:a25:b74d:: with SMTP id e13mr7453643ybm.405.1611659702129; Tue, 26 Jan 2021 03:15:02 -0800 (PST) Path: eternal-september.org!reader02.eternal-september.org!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 26 Jan 2021 03:15:01 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=94.31.101.133; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf NNTP-Posting-Host: 94.31.101.133 References: <9e1b5d67-be08-4f53-aadc-fbed761a8c24n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Simple example on interfaces From: AdaMagica Injection-Date: Tue, 26 Jan 2021 11:15:02 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:61209 List-Id: Dmitry A. Kazakov schrieb am Dienstag, 26. Januar 2021 um 11:25:41 UTC+1: > How do I > spell in the language the fact that Long_Integer is an integer? If > Integer is an integer and Long_Integer is an integer can I write a > program that works on integers? Can it be the *same* program for each > instance of? Simple, natural questions. This is what generics are for (since Ada 83).