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-Thread: 103376,bccad95d5436eaf8 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!proxad.net!teaser.fr!not-for-mail From: Eric Jacoboni Newsgroups: comp.lang.ada Subject: Re: Ada begginer's new problem. Date: Thu, 28 Oct 2004 13:26:19 +0200 Organization: Rogntutdju & Associates Message-ID: References: NNTP-Posting-Host: titine.scrogneugneu.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: feed.teaser.net 1098962779 334 81.56.238.119 (28 Oct 2004 11:26:19 GMT) X-Complaints-To: abuse@teaser.fr NNTP-Posting-Date: Thu, 28 Oct 2004 11:26:19 +0000 (UTC) X-Attribution: Jaco User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (darwin) Cancel-Lock: sha1:zLXlIWOmbs5dv36bpMFmzbbcHLE= Xref: g2news1.google.com comp.lang.ada:5795 Date: 2004-10-28T13:26:19+02:00 List-Id: "bubble" writes: > 1. ��continue�� reserve word support? > Ada has no ��continue�� word. Why Ada should have such a construct which breaks, imho, logical flow of a program? (i suppose you talk about the C continue statement). > It's hard to read, Perhaps because you could use another algorihm to achieve the same goal ? > How should I do to remove "goto" ....? The question is rather: why i've had to use a goto in my algorithm ? ;-) > 2. type declare problem > > I know there are some choices can apply to my program. > ( a ). Type stock_price is new float; > ( b ). Type stock_price is digits 5; > ( c ). Subtype stock_price is float; > > I know if I use ( c ) style. I can mix stock_price and float type to > compute together. > > if we don't consider ( c ) style, only consider (a) and (b). > which style is best? b is the best of your 3 options as it fits exactly to your requirement. But, for modelizing prizes, i suggest you look at decimal fixed point, rather. -- �ric Jacoboni, n� il y a 1402406099 secondes