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,60118c65070501a2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-06 15:24:24 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!howland.erols.net!newshub2.home.com!news.home.com!news2.POSTED!not-for-mail From: "Clueless" Subject: Re: Pool Specific Access Types? Thanks Ted...everyone. Newsgroups: comp.lang.ada References: <3B9797BF.B6FEA4A@worldnet.att.net> User-Agent: Pan/0.8.1beta4 (Unix) X-No-Productlinks: Yes Message-ID: Date: Thu, 06 Sep 2001 22:24:23 GMT NNTP-Posting-Host: 24.0.109.49 X-Complaints-To: abuse@home.net X-Trace: news2 999815063 24.0.109.49 (Thu, 06 Sep 2001 15:24:23 PDT) NNTP-Posting-Date: Thu, 06 Sep 2001 15:24:23 PDT Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: archiver1.google.com comp.lang.ada:12852 Date: 2001-09-06T22:24:23+00:00 List-Id: It finally works. Ted pointed out that I had my if/else backwards. Heres the code...does exactly what I'm expecting now. The Pool fills up quite nicely... -- This is a file so I can learn how to do pointers in Ada95 -- -- Try not to laugh too much. I'm a former C junkie, and it shows. -- with Ada.Text_IO; use Ada.Text_IO; procedure Point_pract is type Numb_holder; type Numb_ptr is access Numb_holder; type Numb_holder is record Number: Integer; Next: Numb_Ptr; end record; N: Numb_ptr; s : string(1..15); len : natural; quit : constant String := "q"; anthr_numb : integer := 0; begin loop Put_Line("Enter a number here: "); Get_Line( s , len); if s(s'first..len) /= quit then anthr_numb := Integer'value(s(1..len)); N := new Numb_holder'(anthr_numb, N); New_Line; else N := N.Next; while N /= null loop Put_Line( N.Number'img ); N := N.Next; end loop; end if; end loop; end Point_pract; Now I can go over to a real program, and put this to use. Thanks for your patience. Clueless. chris@dont.spam.me