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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f849b,d275ffeffdf83655 X-Google-Attributes: gidf849b,public X-Google-Thread: 103376,d275ffeffdf83655 X-Google-Attributes: gid103376,public X-Google-Thread: 109fba,d275ffeffdf83655 X-Google-Attributes: gid109fba,public X-Google-Thread: 1108a1,d275ffeffdf83655 X-Google-Attributes: gid1108a1,public X-Google-Thread: 10a146,bab58563a24f525a X-Google-Attributes: gid10a146,public X-Google-Thread: 115aec,d275ffeffdf83655 X-Google-Attributes: gid115aec,public From: kilgallen@eisner.decus.org (Larry Kilgallen) Subject: Re: Ada vs C++ vs Java Date: 1999/01/14 Message-ID: <1999Jan14.153651.1@eisner>#1/1 X-Deja-AN: 432684762 X-Nntp-Posting-Host: eisner.decus.org References: <369C1F31.AE5AF7EF@concentric.net> <369DF242.B0613E1C@no-spam-ibm.net> X-Trace: news.decus.org 916346216 28250 KILGALLEN [192.67.173.2] Organization: LJK Software Reply-To: Kilgallen@eisner.decus.org.nospam Newsgroups: comp.lang.ada,comp.lang.c++,comp.realtime,comp.arch.embedded,comp.object,comp.lang.java.programmer Date: 1999-01-14T00:00:00+00:00 List-Id: In article , "Erik Funkenbusch" writes: > Which doesn't change the point that "safe" languages do not allow some > things which are necessary to do certain things. For instance, you can't > use Java to point to a memory mapped I/O structure. C++ can (because it > allows pointers). But the goal, presumably, is not to "point to" a memory mapped I/O structure but rather to transfer data to and from it. If Java does not allow that, it is certainly not because it is impossible in a "safe" language, since Address Clauses in Ada (even Ada83) allow you to define an entity (an array of 16-bit words, for example) and specify its address. Then you can iterate through your array (or access specific elements in your record, if you have chosen a non-uniform representation) without running off the end as you might if you were programming in a pointer-centric language. Larry Kilgallen