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.4 required=5.0 tests=BAYES_00,SUBJ_ALL_CAPS autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9c41ceb9ae09ec6d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-03-13 11:54:13 PST Newsgroups: comp.lang.ada Path: bga.com!news.sprintlink.net!howland.reston.ans.net!gatech!newsfeed.pitt.edu!uunet!psinntp!ss3!ss5!jakrzy From: jakrzy@ss5.magec.com (James A. Krzyzanowski) Subject: Re: ADA FUNCTIONS TO PROCEDURES Message-ID: Sender: usenet@ss3.magec.com Nntp-Posting-Host: ss5 Organization: Magnavox Electronics Systems Company X-Newsreader: TIN [version 1.2 PL2] References: <3jqjbp$im7@news.rain.org> <3jt7u2$83o@Starbase.NeoSoft.COM> Date: Mon, 13 Mar 1995 17:39:25 GMT Date: 1995-03-13T17:39:25+00:00 List-Id: David Weller (dweller@Starbase.NeoSoft.COM) wrote: : In article , : James A. Krzyzanowski wrote: : >Henri Altarac (haltarac@rain.org) wrote: : > : >: In some (strange) coding standard I saw, they required that : >: function should not have any side effects. Procedure could. : > : >What's so strange about that? At Magnavox, we DO have that as a coding : >standard! : I think he was implying it was strange because it required it in a : strict sense (?). We have the "No side effect" rule in our standard : too, but it's immediately followed up with a statement that one MAY : break the rule if 1) it provides a more readable product, 2) it is a : "safe" usage ( a good example is the state of a random number : generator), and 3) It passes a code review of peers and at least one : "expert" Yes, we do have the same exception; I just did not want to confuse the discussion with practical facts ;^} -- Not necessarily the opinion of the company... -- --------------------------------------------------------------------------- James A. Krzyzanowski - Senior Software Engineer - AFATDS Magnavox Electronic Systems Company * Fort Wayne, IN 46808 * (219) 429-6446 jakrzy@most.magec.com Opinions_Expressed := (Mine and not Magnavox); "I'd rather be right than politically correct !!!" ---------------------------------------------------------------------------