comp.lang.ada
 help / color / mirror / Atom feed
From: gvls1!lonjers@louie.udel.edu  (Jim Lonjers)
Subject: Re: Data Overlays
Date: 1 Sep 93 04:23:10 GMT	[thread overview]
Message-ID: <1993Sep1.042310.15239@VFL.Paramax.COM> (raw)

In article <25um9l$rfk@seine.cs.umd.edu> alex@cs.umd.edu (Alex Blakemore) write
s:
>unfortunately, if the entire object cannot be read, "the number of
>POSIX characters actually transferred is unspecified and there is no
>way for the POSIX application to know this number".  this is fine if
>you wish to read and write Ada objects whose size is known in advance,
>but is a real impediment if you wish to read in a blocks of
>characters, and dont know the total size in advance (i.e. to
>repeatedly fill a buffer, and the last time the number read may be
>less than the size of the buffer).

Yes, you have really identified a failing here:  the generic operations
should have allowed for transfer of multiple objects of a type, with an
indicator of how many of those objects are actually transferred.  This
would bridge the gap between the "one-at-a-time" generic model and the
essentially untyped transfer provided by the "buffer" model.  Good idea for
future standards.

>I think the Ada POSIX binding is really fine and a big improvement
>over the C version in most respects.  for most applications, text_io
>would be fine.  I sure wish there was one 8 bit character that all the
>packages agreed upon.
>
>instead for those of using ASIS, we have
>  POSIX.POSIX_Character
>  Standard.Character
>  ASIS.ASIS_Character

Obviously, ASIS goofed, they could have picked POSIX.POSIX_Character :-)

>and all are very likely physically identical, sheesh.

Yea, when we invented POSIX.POSIX_Character, we felt the same way.  I
believe most of this problem goes away in 9X.

             reply	other threads:[~1993-09-01  4:23 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-09-01  4:23 Jim Lonjers [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-09-01 14:36 Data Overlays David Emery
1993-08-31 20:36 dog.ee.lbl.gov!agate!howland.reston.ans.net!math.ohio-state.edu!magnus.ac
1993-08-31  3:51 Jim Lonjers
1993-08-23 14:17 Bob Crispen
1993-08-23 14:11 Alex Blakemore
1993-08-19 13:16 cs.utexas.edu!mars.tsd.arlut.utexas.edu!gardner
1993-08-19  2:18 portal!cup.portal.com!R_Tim_Coslet
1993-08-18 16:40 cis.ohio-state.edu!magnus.acs.ohio-state.edu!csn!news.den.mmc.com!iplmail
1993-08-18 16:27 Charles H. Sampson
1993-08-18 16:04 Charles H. Sampson
1993-08-18 12:55 cis.ohio-state.edu!magnus.acs.ohio-state.edu!csn!news.den.mmc.com!iplmail
1993-08-18 12:50 cis.ohio-state.edu!math.ohio-state.edu!howland.reston.ans.net!europa.eng.gtefsd.com!fs7.ece.cmu.edu!news.sei.cmu.edu!firth
1993-08-18  2:11 cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!do
1993-08-18  1:53 cis.ohio-state.edu!magnus.acs.ohio-state.edu!math.ohio-state.edu!howland.
1993-08-18  0:39 cis.ohio-state.edu!magnus.acs.ohio-state.edu!math.ohio-state.edu!cs.utexa
1993-08-17 15:16 Charles H. Sampson
1993-08-13 17:57 cgl!sgiblab!darwin.sura.net!mlb.semi.harris.com!x102a!scook
1993-08-13 12:48 Bob Gilbert
replies disabled

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