comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: Request for critics
Date: Wed, 22 Mar 2006 19:21:32 -0600
Date: 2006-03-22T19:21:32-06:00	[thread overview]
Message-ID: <oeydnf-tRIaBZbzZRVn-jg@comcast.com> (raw)
In-Reply-To: 2WkUf.635442$084.549856@attbi_s22

A few additional minor suggestions:
     Image : constant array(Cell_State) of Character
       := (Active => '*', Inactive => ' ');
then
     procedure Show(Row : in Row_Of_Cells) is
       use Ada.Text_IO;
     begin
        for I in Row'range loop
          Put(Image(Row(I)));
        end loop;
        New_Line;
     end Show;

and
     New_State : constant array(Cell_State, Cell_State) of Cell_State
       := (Active   => (Active=>Inactive, Inactive=>Active),
           Inactive => (Active=>Active, Inactive=>Inactive),
then
     New_Automata(Cell_Index) := New_State(Automata(Cell_Index - 1),
                                           Automata(Cell_Index + 1));



  reply	other threads:[~2006-03-23  1:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-22 10:01 Request for critics Maciej Sobczak
2006-03-22 21:44 ` Gautier
2006-03-22 23:17 ` Jeffrey R. Carter
2006-03-23  1:21   ` tmoran [this message]
2006-03-23  4:29 ` Steve
2006-03-24 23:30 ` Justin Gombos
2006-03-25 14:00   ` Stephen Leake
2006-03-26  0:35     ` Jeffrey R. Carter
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox