From: rleif@rleif.com (Robert C. Leif)
Subject: Omission in the Ada Standard
Date: 25 Sep 2003 08:05:16 -0700
Date: 2003-09-25T15:05:18+00:00 [thread overview]
Message-ID: <657ea3e3.0309250705.3537b0b0@posting.google.com> (raw)
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
next reply other threads:[~2003-09-25 15:05 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-25 15:05 Robert C. Leif [this message]
2003-09-25 17:12 ` Omission in the Ada Standard Larry Kilgallen
2003-09-25 19:47 ` Simon Wright
2003-09-26 1:51 ` Jeff C,
2003-09-26 2:02 ` Larry Kilgallen
2003-09-26 13:05 ` Vinzent 'Gadget' Hoefler
2003-10-06 3:50 ` Dave Thompson
-- strict thread matches above, loose matches on Subject: below --
2003-09-25 18:57 Robert C. Leif
2003-09-25 19:24 Beard, Frank Randolph CIV
2003-09-26 0:30 ` Larry Kilgallen
2003-09-26 16:10 ` Robert C. Leif
2003-09-26 17:38 ` Jeff C,
2003-09-28 21:43 ` Keith Thompson
2003-10-09 16:56 ` Jerry Petrey
2003-10-10 2:07 ` Jeff C,
2003-09-26 18:04 ` Jeff C,
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox