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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,90f687f65a66617e X-Google-Attributes: gid103376,public From: root Subject: Re: Simple ADA/C Question Date: 1997/02/27 Message-ID: #1/1 X-Deja-AN: 221850359 References: Organization: NASA/MSFC Newsgroups: comp.lang.ada Date: 1997-02-27T00:00:00+00:00 List-Id: On 27 Feb 1997, Robert Dewar wrote: > > your design is defective, to accept any character other than y as a > terminating character is a bad idea. In this case, the character read > is the period (if you input 21.35, the get of an integer will read only > the 21), and your program is working exactly as you intend (only though > I don't think you exactly intended this effect :-) > Design, we don't need no stinkin design :). I am simply learning ADA and ADA to C interfacing and am not focusing on proper and robust designs yet. Next week I will develop my new heart pump controller using embedded ADA with a touch of C and THEN I'll pay attention to design, maybe :). address e-mail replies to: eliasson@logan.msfc.nasa.gov