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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5c8024b730bb1bfb X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-06 07:06:13 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dennison@telepath.com (Ted Dennison) Newsgroups: comp.lang.ada Subject: Re: Compiler error: 'Expect procedure name in procedure call' Date: 6 Nov 2002 07:06:12 -0800 Organization: http://groups.google.com/ Message-ID: <4519e058.0211060706.2f4a9f1c@posting.google.com> References: <445cd6bf.0211040705.3b638858@posting.google.com> <445cd6bf.0211041157.1537dfd5@posting.google.com> <3DC6DCC4.60301@worldnet.att.net> <3DC82F56.A723BACA@mmm.com> NNTP-Posting-Host: 65.115.221.98 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1036595172 4975 127.0.0.1 (6 Nov 2002 15:06:12 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 6 Nov 2002 15:06:12 GMT Xref: archiver1.google.com comp.lang.ada:30454 Date: 2002-11-06T15:06:12+00:00 List-Id: cjsonnack@mmm.com (Programmer Dude) wrote in message news:<3DC82F56.A723BACA@mmm.com>... > Jim Rogers wrote: > > > You are actually calling C functions. It is still a bad idea to > > ignore a return value. The return value is your only indication of an > > error from a C function. Ignoring errors is a BAD idea. > > But what about C functions in the str* family? They often just return > their first argument (that is, not an error code). You're right. C functions have all sorts of different bizzare ways of returning results and statuses. That's why I generally advocate isolating interfacing C pragmas in package bodies, with the specs exporting a cleaned-up Ada interface (removing useless parameters and returns, raising exceptions for errors, converting ugly C types to nice clean Ada types, etc.)