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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,539d1d90a7670ec5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-02 18:10:35 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.cwix.com!newsfeed1.cidera.com!Cidera!cyclone1.gnilink.net!wn11feed!wn7feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc51.ops.asp.att.net.POSTED!not-for-mail From: Caffeine Junky Subject: Re: Stumbling over arrays.(A bit of a ramble. Read if your bored.) Newsgroups: comp.lang.ada References: <02om9.1609$DN4.1573@sccrnsc01> User-Agent: Pan/0.11.3 (Unix) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Comment-To: "Georg Bauhaus" Message-ID: NNTP-Posting-Host: 12.241.145.39 X-Complaints-To: abuse@attbi.com X-Trace: rwcrnsc51.ops.asp.att.net 1033607434 12.241.145.39 (Thu, 03 Oct 2002 01:10:34 GMT) NNTP-Posting-Date: Thu, 03 Oct 2002 01:10:34 GMT Organization: AT&T Broadband Date: Thu, 03 Oct 2002 01:10:34 GMT Xref: archiver1.google.com comp.lang.ada:29480 Date: 2002-10-03T01:10:34+00:00 List-Id: On Wed, 02 Oct 2002 08:33:53 -0400, Georg Bauhaus wrote: > do these ring a bell: > component type > unconstrained > constrained > anonymous > bound > slice > "array attributes" > > and then later: > passed by reference > passed by copy > ? > > There is a section on arrays in > http://www.crystalcode.com/codemage/MainMenu/Coding/Ada/IntroducingAda.php > > -- georg Oh yeah. I understand Ada arrays. I can use them. I just have a tendency to get them mixed up from time to time. I'm writing a bunch of practice Sort methods for practice. Variations on Quicksort, Merge Sort, and Heap Sort. These are giving me a ton of practice on arrays. They dont seem nearly as confusing as they did a few days ago. I just read the article. It has cleared up a couple of things. I'm gonna post up some of the code I've written. Somebody might actually find it useful. I'm having alot of fun with tasking/threaded quicksorts. I never realized there could be so many different ways to implement the same algorithm. As an off subject, if compile a protected type module in a system with Linux pthreads installed, should the compiler (GNAT 3.14) automatically compile it as a multithreaded module? Or do I have to explicitly direct the compiler to do that? Protected Types seem to be an order of magnitude safer than just plain tasks. Thanks for the pointers. NiCad