From: mark_lundquist@my-deja.com
Subject: Re: How can I avoid Using a Semaphore?
Date: Mon, 22 Jan 2001 00:16:07 GMT
Date: 2001-01-22T00:16:07+00:00 [thread overview]
Message-ID: <94fu43$bl2$1@nnrp1.deja.com> (raw)
In-Reply-To: 0Cka6.290338$U46.9207275@news1.sttls1.wa.home.com
> 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.
Why don't you just derive from the predefined type, then override the
stream attributes on your derived type? That doesn't seem like a huge
inconvenience... OTOH, it seems like Ada is helping, not hurting, by
supplying predefined implementations of those attributes for predefined
types (for when you *don't* care how they are implemented!)
Maybe I'm missing your point when you say this is a weak point...? If
so, try again and I'll try to follow :-)
Said another way, if you say you want different stream I/O methods for
Integer than the predefined ones, what you really mean is that you
don't want an Integer! :-) What you want is something that is just
like an Integer but has different I/O methods.
Mark Lundquist
Rational Software
Sent via Deja.com
http://www.deja.com/
next prev parent reply other threads:[~2001-01-22 0: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
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 [this message]
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