From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f14288fc5fbd20fa,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: xadian Newsgroups: comp.lang.ada Subject: ambiguous universal_fixed_expression Date: Sat, 27 Nov 2004 19:16:24 +0100 Organization: T-Online Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.t-online.com 1101579371 03 6236 ak33X-clOhkAXoj 041127 18:16:11 X-Complaints-To: usenet-abuse@t-online.de X-ID: TWVM+BZEreSsmF0p5xzVTcLVQeJbhu0BtreB3QT7HY+Ecbbm33tbYR User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616) X-Accept-Language: en-us, en Xref: g2news1.google.com comp.lang.ada:6557 Date: 2004-11-27T19:16:24+01:00 List-Id: 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