From: Mehdi Saada <00120260a@gmail.com>
Subject: Standard."-" provided to "with function "-" (VAL1 : in VALUE_TYPE) return VALUE_TYPE is <>;" refused:
Date: Fri, 6 Apr 2018 10:20:21 -0700 (PDT)
Date: 2018-04-06T10:20:21-07:00 [thread overview]
Message-ID: <3c392f24-5b12-4290-9ec6-2dc986bb6530@googlegroups.com> (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 ?!
next reply other threads:[~2018-04-06 17:20 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-06 17:20 Mehdi Saada [this message]
2018-04-06 19:43 ` Standard."-" provided to "with function "-" (VAL1 : in VALUE_TYPE) return VALUE_TYPE is <>;" refused: 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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox