From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2cc84c0fee9046c0 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!news.arcor.de!not-for-mail Date: Sun, 25 Sep 2005 17:25:13 +0200 From: Georg Bauhaus User-Agent: Debian Thunderbird 1.0.2 (X11/20050817) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Various Language Architecture Questions References: <1127615832.540718.246970@g43g2000cwa.googlegroups.com> <1lj1ewtykmmp4.j6srtz43enc4.dlg@40tude.net> <1127652977.471484.203180@g47g2000cwa.googlegroups.com> In-Reply-To: <1127652977.471484.203180@g47g2000cwa.googlegroups.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4336c102$1$16476$9b4e6d93@newsread4.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 25 Sep 2005 17:23:46 MEST NNTP-Posting-Host: ded2bb8b.newsread4.arcor-online.net X-Trace: DXC=4Z9QWcE\RO\>K]\3>m]<[U:ejgIfPPldTjW\KbG]kaMXXY;eg@jLYe\<[nmYnX2?PZhP3YJKgE\j\jMXKnFInjeX X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:5142 Date: 2005-09-25T17:23:46+02:00 List-Id: 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.