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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,58253cbf46bbb1fc X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!e60g2000hsh.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: Automated conversion to C++? Date: Mon, 18 Feb 2008 06:43:05 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <5bb30e3a-479b-4feb-be5e-e777edf778c9@q78g2000hsh.googlegroups.com> <47b883a9$0$26403$4d3efbfe@news.sover.net> NNTP-Posting-Host: 128.141.45.220 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1203345786 22505 127.0.0.1 (18 Feb 2008 14:43:06 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 18 Feb 2008 14:43:06 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e60g2000hsh.googlegroups.com; posting-host=128.141.45.220; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:19860 Date: 2008-02-18T06:43:05-08:00 List-Id: On 17 Lut, 20:50, Kilgal...@SpamCop.net (Larry Kilgallen) wrote: > I am not an expert, but just as a first guess I don't see a way that > Posix could implement "end of line" and "end of page" markers without > using an inline reserved character. What is wrong with ASCII 10 and 12 codes (decimal)? I don't see in what way POSIX can prevent you from implementing this area of Ada library. > I have my suspicious that due to its Unix/C roots, some implementations > of Posix might have trouble writing a file with lines that contain one or > more embedded null. This statement is completely nebulous. The POSIX standard defines the write function (man 2 write) that is a basic function for doing output operations. C standard library (stdio.h) is implemented on top of this, and also provides interface for binary output of arbitrary data. I don't see in what way POSIX can prevent you from correctly implementing the Ada library. > Unix and C have a habit of acting like no string > would have a null in the middle. Unix does not take care what you write to the file descriptor; C allows binary operations without any problem and has nothing to do when it comes to implementing Ada anyway. -- Maciej Sobczak * www.msobczak.com * www.inspirel.com