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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fe7b178ffa3708a,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-25 08:05:19 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: rleif@rleif.com (Robert C. Leif) Newsgroups: comp.lang.ada Subject: Omission in the Ada Standard Date: 25 Sep 2003 08:05:16 -0700 Organization: http://groups.google.com/ Message-ID: <657ea3e3.0309250705.3537b0b0@posting.google.com> NNTP-Posting-Host: 64.105.82.40 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1064502318 15864 127.0.0.1 (25 Sep 2003 15:05:18 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 25 Sep 2003 15:05:18 GMT Xref: archiver1.google.com comp.lang.ada:42897 Date: 2003-09-25T15:05:18+00:00 List-Id: While I was working on my latest project, the CellFuge, I was shocked to learn that Jerry van Dijk's Io_Ports package that I have did not compile with GNAT. I do need an up to date version. Since the Intel Pentium class of processors and their clones are a very large part of the software market, the possibility of port based IO should be included in Ada. I would suggest a child library of Package System. Something like the source text below. The with System and use System were included to permit compilation. with System; use System; package System.Ports is type Port is new Address; Null_Port : constant Port := Port (Null_Address); Port_Unit : constant := Storage_Unit; -- Address Comparison: function "<" ( Left, Right : Port ) return Boolean; function "<=" ( Left, Right : Port ) return Boolean; function ">" ( Left, Right : Port ) return Boolean; function ">=" ( Left, Right : Port ) return Boolean; function "=" ( Left, Right : Port ) return Boolean; -- function "/=" (Left, Right : Port) return Boolean; -- "/=" is implicitly defined end System.Ports; This would be followed by variants of the other System child libraries. One way to do this is to create a generic package that could be instantiated into both System and Ports. Bob Robert C. Leif, Ph.D. Email rleif@rleif.com