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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,63360011f8addace X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-19 05:41:32 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!wn1feed!wn2feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc52.ops.asp.att.net.POSTED!not-for-mail From: "SteveD" Newsgroups: comp.lang.ada References: Subject: Re: time-slicing X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <%NTZ8.41408$_51.41147@rwcrnsc52.ops.asp.att.net> NNTP-Posting-Host: 12.225.227.101 X-Complaints-To: abuse@attbi.com X-Trace: rwcrnsc52.ops.asp.att.net 1027082491 12.225.227.101 (Fri, 19 Jul 2002 12:41:31 GMT) NNTP-Posting-Date: Fri, 19 Jul 2002 12:41:31 GMT Organization: AT&T Broadband Date: Fri, 19 Jul 2002 12:41:31 GMT Xref: archiver1.google.com comp.lang.ada:27249 Date: 2002-07-19T12:41:31+00:00 List-Id: "Jan Prazak" wrote in message news:pan.2002.07.19.12.11.27.628405.1504@gmx.net... > On Fri, 19 Jul 2002 02:17:11 -0100, SteveD wrote: > > Thanks for the example, I have seen a similar one in a book. > > > The following program gives the desired result by creating a task-safe > > version of Put_Line (actually on W2K I get ba ba instead of ab ab). > > That's interesting. It means that Ada for Win does start tasks in the > declarative region first, and then the main part is started. > Which is what I would expect on any platform although W2K happens to be the only platform I tested on. In Ada elaboration within a module is performed in the order things appear inside the module. Things that appear before the "begin" are elaborated before the body of the main procedure. It would be awkward to do otherwise since things used by the body would not be initialized. SteveD