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.2 required=5.0 tests=BAYES_00,FROM_WORDY, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1ea19776e3073a96 X-Google-Attributes: gid103376,public From: "Ken Garlington" Subject: Re: C/C++ programmer giving Ada95 a chance -- writing an emulator. Date: 2000/03/30 Message-ID: <_RzE4.20656$624.1593172@news.flash.net>#1/1 X-Deja-AN: 604155616 References: <38e148e2.5089627@news.shreve.net> <38e19656.17008608@news.shreve.net> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Complaints-To: abuse@flash.net X-Trace: news.flash.net 954386938 209.250.225.153 (Wed, 29 Mar 2000 21:28:58 CST) Organization: FlashNet Communications, http://www.flash.net X-MSMail-Priority: Normal NNTP-Posting-Date: Wed, 29 Mar 2000 21:28:58 CST Newsgroups: comp.lang.ada Date: 2000-03-30T00:00:00+00:00 List-Id: "jross" wrote in message news:38e19656.17008608@news.shreve.net... > Ah! Access types and the ability to Initialize an array with record > values. Actually the entire array can be a constant (don't know if > that would help with optimizing the compiled code). I think in my example I used a constant table. You might be right if it helped with optimization, also. However, I didn't define the table as constant because of optimization -- I defined it as constant because logically I probably won't change it dynamically, and if some part of the code attempted to do so, I'd probably want to know about it. That sort of checking built into the language is very powerful, and you should make use of it whenever you can. This sort of thought process is going to help you understand the dfference between using the predefined types (Integer, Float, etc.) and user-defined types (e.g. type Opcode is new Integer?) later.