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,583275b6950bf4e6 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-15 09:35:23 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Quality systems (Was: Using Ada for device drivers? (Was: the Ada mandate, and why it collapsed and died)) Date: 15 May 2003 12:32:59 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <9fa75d42.0305091549.48b9c5d9@posting.google.com> <7507f79d.0305121629.5b8b7369@posting.google.com> <9fa75d42.0305130543.60381450@posting.google.com> <1052931043.822632@master.nyc.kbcfp.com> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1053017313 17925 128.183.235.92 (15 May 2003 16:48:33 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 15 May 2003 16:48:33 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:37356 Date: 2003-05-15T16:48:33+00:00 List-Id: Vinzent Hoefler writes: > Two parameters to a function > call that took a lot of ints were accidentally swapped. Yeah, of > course I could have taken a more deeper look into the function > specification but I was still sleeping and missed my morning coffee. > > With some distinct types for the parameters an Ada compiler *could* > have catched this. Of course, one has to make *use* of the strong type > system, then. You could also use named association at the call site. That's my style policy; if there are two parameters to a function with the same type, use named association. -- -- Stephe