comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <bauhaus@futureapps.de>
Subject: Re: Various Language Architecture Questions
Date: Sun, 25 Sep 2005 17:25:13 +0200
Date: 2005-09-25T17:23:46+02:00	[thread overview]
Message-ID: <4336c102$1$16476$9b4e6d93@newsread4.arcor-online.net> (raw)
In-Reply-To: <1127652977.471484.203180@g47g2000cwa.googlegroups.com>

frankgerlach@gmail.com wrote:
> Whatabout the following examples:
> 1.) Simple,unportabe Network Data Transport: To transport a C struct, I
> just cast it to char* and then write sizeof(myStruct) bytes to the
> Socket. This is very fast and works in a homogeneous network.

Pascal Obry has mentioned the 'Write attribute.
That is something you can supply for a record type,
together with a socket stream, for example.
 You could have the stream implementation just write
a number of storage_elements to the socket for a record
value.

> 2.) Using Unchecked_conversion() in Ada kills range checking ? That
> seems to be inferior to java...

Consider the name of the thing: Unchecked_Conversion. That is,
a non-checked re-interpretation of the bits. There are checked conversions,
too.



  parent reply	other threads:[~2005-09-25 15:25 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-25  2:37 Various Language Architecture Questions frankgerlach
2005-09-25  5:07 ` jimmaureenrogers
2005-09-25  7:24   ` Martin Dowie
2005-09-25  8:17 ` Martin Krischik
2005-09-25  8:53 ` Dmitry A. Kazakov
2005-09-25 12:56   ` frankgerlach
2005-09-25 13:24     ` Larry Kilgallen
2005-09-25 14:04     ` Pascal Obry
2005-09-25 14:24     ` Martin Krischik
2005-09-25 15:25     ` Georg Bauhaus [this message]
2005-09-25 15:32       ` Georg Bauhaus
2005-09-25 16:02         ` Pascal Obry
2005-09-25 16:02       ` Pascal Obry
2005-09-26  7:44     ` Maciej Sobczak
2005-09-26 21:07       ` Florian Weimer
2005-09-27  4:31         ` Simon Wright
2005-09-27  7:18           ` Tapio Kelloniemi
2005-09-27 23:43           ` Florian Weimer
2005-09-28 20:43             ` Simon Wright
2005-09-29 23:24             ` Randy Brukardt
2005-09-26 21:05     ` Florian Weimer
2005-09-25 11:57 ` Marin David Condic
2005-09-25 15:21 ` Björn Persson
2005-09-25 22:25 ` Jeffrey R. Carter
2005-09-26 18:09   ` David Emery
replies disabled

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