From: xadian <xadian@gmx.de>
Subject: ambiguous universal_fixed_expression
Date: Sat, 27 Nov 2004 19:16:24 +0100
Date: 2004-11-27T19:16:24+01:00 [thread overview]
Message-ID: <coag9b$62s$03$1@news.t-online.com> (raw)
Hi
I've got a problem with an Ada program(surprise ;D).
With this line:
x := sol_Ty((var_Ar(f)*var_Ar(b))-(var_Ar(e)*var_Ar(c))/z);
-- x : sol_Ty := (f*b - e*c) / z;
I get the following errors:
> ambiguous universal_fixed_expression
> possible interpretation as type "Standard.duration"
> possible interpretation as type "sol_Ty" defined at line 8
The minus in the middle is highlighted after the errors.
var_Ar is an array of the type sol_Ty and x is also sol_Ty. sol_Ty
definition is a decimal fixed point:
> type sol_Ty is delta 0.01 digits 18;
I never worked with duration so can anyone tell me (or link something)
what it is and why it can be missinterpreted in this case? And how i can
GENERALLY solve it?!
thx already
xadian
next reply other threads:[~2004-11-27 18:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-27 18:16 xadian [this message]
2004-11-27 19:08 ` ambiguous universal_fixed_expression Martin Krischik
2004-11-27 20:52 ` Jeffrey Carter
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox