comp.lang.ada
 help / color / mirror / Atom feed
From: sdd.hp.com!cs.utexas.edu!ut-emx!hasan@hplabs.hpl.hp.com  (David A. Hasan)
Subject: Re: generic subprogs. in a package
Date: 16 Jan 92 14:14:02 GMT	[thread overview]
Message-ID: <65132@ut-emx.uucp> (raw)

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 

             reply	other threads:[~1992-01-16 14:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-01-16 14:14 David A. Hasan [this message]
  -- strict thread matches above, loose matches on Subject: below --
1992-01-16  0:06 generic subprogs. in a package David  A. Hasan
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox