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=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3ac670d3be4b8f7a,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-07 18:33:35 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!209.50.235.254!europa.netcrusader.net!205.252.116.205!howland.erols.net!newshub2.home.com!news.home.com!news1.rdc1.mi.home.com.POSTED!not-for-mail From: "mcdoobie" Subject: A question on function calls and defs. Newsgroups: comp.lang.ada Organization: Caffinated Corps User-Agent: Pan/0.8.1beta6 (Unix) X-No-Productlinks: Yes Message-ID: Date: Thu, 08 Mar 2001 02:30:37 GMT NNTP-Posting-Host: 24.0.109.49 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.mi.home.com 984018637 24.0.109.49 (Wed, 07 Mar 2001 18:30:37 PST) NNTP-Posting-Date: Wed, 07 Mar 2001 18:30:37 PST Xref: supernews.google.com comp.lang.ada:5531 Date: 2001-03-08T02:30:37+00:00 List-Id: Alright so I have this code that looks like this... with Ada.Text_IO, Ada.Float_Text_IO; use Ada.Text_IO, Ada.Float_Text_IO; procedure simplemath is begin -- The rest of the code to the program would be here -- -- This is the section I have a question on -- if opt_is = 'V' then Put( Hi_prompt ); Get( aHeight ); the_volume := find_volume( aLength, aWidth, aHeight ); - Trouble here - NEW_LINE; ----- Cut to the Function itself ----- function find_volume( aLength, aWidth, aHeight : float ) return float is volume : float begin volume := aLength * aWidth * aHeight; return volume; end find_volume; end simplemath; As you can probably tell, this is a pretty damn simple program. I'm writing it just for practice with Ada95. Now, the problem I'm having is that when I attempt to compile this code it tells me that in my call to the "find_volume" function I have too many arguments in the call. I'm not at all sure what that means. I'm searching the compiler docs to find out, however a little insight would be appreciated. Now, at the function definition I'm getting the error that it's "not type conformant" with my simplemath.ads file.(I did write an .ads file which I used to generate a stub file which was then filled in with code. A really nice touch to the language suite if you ask me. ) Now, I doubt anyone would want me to upload an entire .ads file to the newsgroup( or would they?) however I'm assuming that the error message itself is self-revealing to regular Ada programmers. Could someone point me in the right direction on this one? Should I upload the entire source to the newsgroup? Or would that be considered rude? Thanks in advance. mcdoobie mcdoobie@home.com