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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b2df4819ac8b566a X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!diphi.demon.co.uk!jpt From: JP Thornley Newsgroups: comp.lang.ada Subject: Re: SPARK and Interfaces.C Date: Tue, 24 May 2005 11:36:51 +0100 Message-ID: References: <1116005688.002279.128010@g43g2000cwa.googlegroups.com> <1116072937.506109.246460@g47g2000cwa.googlegroups.com> <1116327342.680775.205190@o13g2000cwo.googlegroups.com> <1116340818.264418.117280@g14g2000cwa.googlegroups.com> <1116492378.074823.321470@g43g2000cwa.googlegroups.com> <1116493274.004505.67590@g49g2000cwa.googlegroups.com> <1116498302.651121.297610@g49g2000cwa.googlegroups.com> <4lZe9SBIv7jCJwn3@diphi.demon.co.uk> <1116841716.694148.260010@g43g2000cwa.googlegroups.com> <1116925072.146066.235050@g49g2000cwa.googlegroups.com> NNTP-Posting-Host: diphi.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain;charset=us-ascii;format=flowed X-Trace: news.demon.co.uk 1116931658 6101 80.177.171.182 (24 May 2005 10:47:38 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Tue, 24 May 2005 10:47:38 +0000 (UTC) User-Agent: Turnpike/6.04-S () Xref: g2news1.google.com comp.lang.ada:11134 Date: 2005-05-24T11:36:51+01:00 List-Id: In article <1116925072.146066.235050@g49g2000cwa.googlegroups.com>, ich_bin_elvis@hotmail.com writes > --# return Ada.Numerics.Elementary_Functions.Sqrt(((X2 - X1) >**2),((Y2-Y1)**2)); > >If i understand the error right it only wan't to parameters an now i >have to many paranteces, but how do I make an temporary value I can use >insead of the expressions I have. Well, you've put two parameters in for a function that usually only has one. Perhaps that comma should be a '+'? Cheers Phil -- JP Thornley