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: 103376,3cfb384718eb4f7a X-Google-Attributes: gid103376,public From: kilgallen@eisner.decus.org (Larry Kilgallen) Subject: Re: question re Ada equivalent of C function Date: 1998/02/22 Message-ID: <1998Feb21.194544.1@eisner>#1/1 X-Deja-AN: 327393382 References: <34EEFF9C.1D01FA5D@stellar1.com> Reply-To: Kilgallen@eisner.decus.org.nospam X-Nntp-Posting-Host: eisner.decus.org X-Trace: news.decus.org 888108346 5451 KILGALLEN [192.67.173.2] Organization: LJK Software Newsgroups: comp.lang.ada Date: 1998-02-22T00:00:00+00:00 List-Id: In article <34EEFF9C.1D01FA5D@stellar1.com>, David Fisher writes: > Sorry if this is a bit basic, but learning Ada on one's own can be, er, > challenging. > > What are the Ada equivalents of the C functions, inp and outp, used to > read a byte from or send one to a memory address? Speaking as someone who learned Ada on my own, let me suggest that you avoid the search for "do xyz like language abc" and deal with Ada as a language unto itself. In many cases trying mimic the functions of another language means that you end up writing an an unnatural style (for Ada) and giving up the more powerful constructs of Ada. Learn all you can about programming in a normal Ada style (there are lots of good books available) and only after you have that mastered should you consider emulating other languages in very special cases (which certainly exist). Larry Kilgallen