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=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 16 Jan 92 14:14:02 GMT From: sdd.hp.com!cs.utexas.edu!ut-emx!hasan@hplabs.hpl.hp.com (David A. Hasan) Subject: Re: generic subprogs. in a package Message-ID: <65132@ut-emx.uucp> List-Id: In article <65114@ut-emx.uucp> hasan@emx.utexas.edu (David A. Hasan) writes: >I can't figure out why the DEC compiler is rejecting >PACKAGE test IS > PROCEDURE f; ... > GENERIC > n : Boolean; > FUNCTION f RETURN Integer; >END test; > > 6 GENERIC >..........1 >%ADAC-E-REDECLERR, (1) Illegal redeclaration of procedure specification f at My question was answered by mail. The answer is that generics can't be overloaded, although knowing that I must say that the compiler error message is somewhat misleading. Out of curiosity, is there a relatively simple explanation for this constraint on generics? -- | David A. Hasan | hasan@emx.utexas.edu