comp.lang.ada
 help / color / mirror / Atom feed
* Standard."-" provided to "with function "-" (VAL1 : in VALUE_TYPE) return VALUE_TYPE is <>;" refused:
@ 2018-04-06 17:20 Mehdi Saada
  2018-04-06 19:43 ` Simon Wright
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Mehdi Saada @ 2018-04-06 17:20 UTC (permalink / raw)


The parameter is
   with function "-" (VAL1 : in VALUE_TYPE) return VALUE_TYPE is <>;
from the (simplified) package
generic
   type VALUE_TYPE is private;
   with function "-" (VAL1 : in VALUE_TYPE) return VALUE_TYPE is <>;
package NUMERIC_SIGNATURE is end Numeric_Signature;

The instantiation is:
package P_Num is new NUMERIC_SIGNATURE (VALUE_TYPE => Float);
Package_needing_a_numeric_signature is new SPREADSHEETS.Formula_Cells (P_NUM);

why do I have:
instantiation error
 operator "-" not defined for type "VALUE_TYPE" defined at ...
gprbuild: *** compilation phase failed
And putting "-" => Standard."-" "association not allowed for overloaded formal"

... Isn't able to choose the "-" with the right parameters number ?!


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-04-07 13:37 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-06 17:20 Standard."-" provided to "with function "-" (VAL1 : in VALUE_TYPE) return VALUE_TYPE is <>;" refused: Mehdi Saada
2018-04-06 19:43 ` Simon Wright
2018-04-06 20:09 ` Mehdi Saada
2018-04-06 21:35   ` Simon Wright
2018-04-06 20:37 ` AdaMagica
2018-04-06 21:39   ` Simon Wright
2018-04-06 23:08     ` Mehdi Saada
2018-04-07  0:05     ` Mehdi Saada
2018-04-07 10:17       ` Mehdi Saada
2018-04-07 10:43         ` Mehdi Saada
2018-04-07 13:37           ` Mehdi Saada

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