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,36a29c2860aff686 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news3.google.com!feeder.news-service.com!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Properties Date: Sat, 04 Dec 2010 17:43:30 +0000 Organization: A noiseless patient Spider Message-ID: References: <3b84c8e7-1a51-4a7c-9646-119f1fc51478@s4g2000yql.googlegroups.com> <4pnv7nl4cdui$.1n28i7lqk4mek$.dlg@40tude.net> <1k7367gtebsgm$.18auo6u3nfg34.dlg@40tude.net> <1u5dftkqqi68c.10079qnqyyfwb$.dlg@40tude.net> <15tv4yga36dpi$.1hc09dlbgcmqe.dlg@40tude.net> <18768dde-5817-40b9-aaa1-03c620ad7187@i32g2000pri.googlegroups.com> <1sp30ekj4pmer$.1753nbz1zyzid$.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: mx02.eternal-september.org; posting-host="dFCm8HWntFqmDIilBLqEJQ"; logging-data="28035"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX181adDAlw8ltm8L9gAPCLepEqavkOkEW2g=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:MGJ/mshN3BOXGMdf59yDdrhNENI= sha1:O/47+LPdAHtoS1PwQgtPcjpiVHY= Xref: g2news2.google.com comp.lang.ada:16773 Date: 2010-12-04T17:43:30+00:00 List-Id: "Dmitry A. Kazakov" writes: > On Thu, 2 Dec 2010 01:57:49 -0800 (PST), Maciej Sobczak wrote: > >> On Dec 1, 10:45 pm, "Dmitry A. Kazakov" >> wrote: >> >>>> And how is this any different from, say, printing exactly the same log >>>> messages on standard output? >>> >>> It is just same. You can safely call Put_Line from any task. >> >> Wrong (AARM Annex A, 3.a): >> >> "simultaneous calls to Text_IO.Put will work properly, so long as they >> are going to two different files. On the other hand, simultaneous >> output to the same file constitutes erroneous use of shared >> variables." > > OK, I let us consider only "reasonable" implementations of Put. > >>> But if you do >>> Set_Text in GTK, that will crash your program. >> >> You mean - that will lead to erroneous execution? So it is exactly the >> same as with printing on standard output. > > I don't know if there is an Ada implementation working this way. > >> Why do you expect to get better guarantees from GUI than from stdout? > > Because in all Ada compilers I used so far this was safe. Then I don't think you can have used GNAT on VxWorks!