comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: How can I avoid Using a Semaphore?
Date: Sat, 20 Jan 2001 19:16:51 GMT
Date: 2001-01-20T19:16:51+00:00	[thread overview]
Message-ID: <94co6t$v27$1@nnrp1.deja.com> (raw)
In-Reply-To: 0Cka6.290338$U46.9207275@news1.sttls1.wa.home.com

In article <0Cka6.290338$U46.9207275@news1.sttls1.wa.home.com>,
  "DuckE" <nospam_steved94@home.com> wrote:
> In my opinion this is one of the weak points of Ada 95.  It
> would have been better to not have the 'input and 'output
> pre-defined for built in types (as a part of the language)
> but to include a package for defining these
> attributes.  That way an arbitrary representation of built in
> types could be used with streams when desired.


I don't see your point here. Surely you are not arguing in
favor of REQUIRING people to define their own stream attributes
for types, that would be a huge pain for the most common use
of stream attributes.

There are two possibilities

1. You want to control stream behavior on a type by type basis.
This you can do perfectly fine, by just avoiding built in types
like Integer, which is good practice anyway, and then define
the stream attributes to work however you want.

2. You want to control stream attributes globally (as is
permitted in GNAT by replacing the System.Stream_Attributes
unit), but you seem to say in the same message that you do NOT
like the fact that in GNAT this approach results in the default
routines applying to everything.

It really seems like Ada 95 does EXACTLY the right think in the
terms you have layed out here, you will have to be a lot
clearer in making your acase that something is missing. Perhaps
you can give at least a sketch of what you would like to see.

From where I sit, it seems like your problem is reasonable,
and easily addressed with the current language features, and
i can't see any addition to these features which would be
helpful in this particular case.


Sent via Deja.com
http://www.deja.com/



  reply	other threads:[~2001-01-20 19:16 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-13 16:18 How can I avoid Using a Semaphore? (long) DuckE
2001-01-15  1:06 ` How can I avoid Using a Semaphore? Nick Roberts
2001-01-15  3:17   ` Robert Dewar
2001-01-16  3:53   ` DuckE
2001-01-17 15:42     ` Nick Roberts
2001-01-20 18:16       ` DuckE
2001-01-20 19:16         ` Robert Dewar [this message]
2001-01-21  1:28           ` DuckE
2001-01-21 16:04             ` Robert Dewar
2001-01-21 23:23               ` DuckE
2001-01-22  0:28                 ` mark_lundquist
2001-01-22  1:51                 ` Robert Dewar
2001-01-23  2:36                   ` DuckE
2001-01-22  0:35               ` Built-in types (was " mark_lundquist
2001-01-22  1:54                 ` Robert Dewar
2001-01-22 16:18                   ` mark_lundquist
2001-01-22 17:20                     ` Robert Dewar
2001-01-22 23:17                       ` Mark Lundquist
     [not found]                         ` <m33deaaeks.fsf@ns40.infomatch.bc.ca>
2001-02-02 22:01                           ` Mark Lundquist
     [not found]                         ` <94km00$bv8$1@nnrp1.deja.com>
2001-02-02 22:03                           ` Mark Lundquist
2001-01-21 16:53           ` Nick Roberts
2001-01-21 18:24             ` Robert Dewar
2001-01-23  0:21               ` Nick Roberts
2001-01-22  0:16         ` mark_lundquist
2001-01-22 16:51 ` How can I avoid Using a Semaphore? (long) mark_lundquist
2001-01-23  6:02   ` DuckE
2001-02-02 22:00     ` Sucking (was Re: How can I avoid Using a Semaphore? (long)) Mark Lundquist
2001-02-03  1:44       ` Jeffrey Carter
2001-02-03  3:21       ` DuckE
2001-02-05 20:07         ` Mark Lundquist
2001-02-06  7:16           ` Sven Nilsson
2001-02-02 22:18     ` How can I avoid Using a Semaphore? (long) Mark Lundquist
2001-02-03  3:01       ` DuckE
2001-02-02 21:38 ` Niklas Holsti
replies disabled

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