comp.lang.ada
 help / color / mirror / Atom feed
From: "Nick Roberts" <Nick.Roberts@dial.pipex.com>
Subject: Re: Text_IO for other standard types
Date: 1998/01/15
Date: 1998-01-15T00:00:00+00:00	[thread overview]
Message-ID: <01bd2209$c902dce0$95fc82c1@xhv46.dial.pipex.com> (raw)
In-Reply-To: 98011512220569@psavax.pwfl.com


You may well have already thought of or used this, but might I suggest that
you cobble together your own little package Handy (suggestion below), and
then your recalcitrant engineers need only 'with Handy' to get the stuff
they need.

   with Ada.Text_IO
   package Handy is
      type Handy_Modular is mod 2**32;
      package Handy_Modular_IO is new Ada.Text_IO(Handy_Modular);
      use Handy_Modular_IO;
      -- and so on ...
   end Handy;

I would add, however, that this ploy in no way detracts from your argument,
which I think has some merit.  What argument can there be for not providing
a predefined modular type, partner to the predefined integer type Integer? 
I think it has to be conceded that a predefined fixed-point type would not
be sensible.  One of the annexes does actually specify a predefined decimal
type, doesn't it?
-- 

Nick Roberts
Croydon, UK

Proprietor, ThoughtWing Software; Independent Software Development
Consultant
* Nick.Roberts@dial.pipex.com * Voicemail & Fax +44 181-405 1124 *
*** Eats three shredded spams every morning for breakfast ***


Marin David Condic wrote at length about the difficulty of convincing
programmers used to more pragmatic languages to adopt Ada.





  parent reply	other threads:[~1998-01-15  0:00 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-15  0:00 Text_IO for other standard types Marin David Condic, 561.796.8997, M/S 731-96
1998-01-15  0:00 ` Robert Dewar
1998-01-16  0:00   ` Nick Roberts
1998-01-16  0:00     ` Robert Dewar
1998-01-17  0:00       ` Geert Bosch
1998-01-17  0:00         ` Robert Dewar
1998-01-15  0:00 ` Robert Dewar
1998-01-15  0:00 ` Nick Roberts [this message]
1998-01-17  0:00 ` Jean-Pierre Rosen
1998-01-17  0:00   ` Robert Dewar
1998-01-18  0:00     ` Michael F Brenner
  -- strict thread matches above, loose matches on Subject: below --
1998-01-20  0:00 Marin David Condic, 561.796.8997, M/S 731-96
1998-01-21  0:00 ` Jean-Pierre Rosen
1998-01-19  0:00 Marin David Condic, 561.796.8997, M/S 731-96
1998-01-12  0:00 Marin David Condic, 561.796.8997, M/S 731-96
1998-01-09  0:00 Marin David Condic, 561.796.8997, M/S 731-96
1998-01-10  0:00 ` Nick Roberts
1998-01-10  0:00 ` Tarjei T. Jensen
1998-01-10  0:00   ` Robert Dewar
1998-01-11  0:00     ` Tarjei T. Jensen
1998-01-11  0:00       ` Robert Dewar
1998-01-11  0:00       ` Robert Dewar
1998-01-12  0:00         ` Tarjei T. Jensen
1998-01-11  0:00 ` Jean-Pierre Rosen
1998-01-14  0:00   ` Dale Stanbrough
1998-01-14  0:00     ` Robert Dewar
1998-01-14  0:00       ` Tarjei T. Jensen
1998-01-14  0:00         ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox