comp.lang.ada
 help / color / mirror / Atom feed
* GNAT-Problem '+'-operator with Count
@ 1994-12-02 13:23 Andreas Krohn
  1994-12-03 12:24 ` Jim Marks
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Andreas Krohn @ 1994-12-02 13:23 UTC (permalink / raw)


I have a problem with the '+' operator in GNAT. I have posted the part with
the error message. Could someone give me a hint, how to solve this
problem.



   147.                                                                    
   148. procedure solve_matrix(source: in matrix;target: in out matrix) is 
   149.     x,y,i,j:Count;    --akt. Pos. in Matrix                        
   150.     nachbarn:INTEGER;          --Anzahl der Nachbarn jeder Zelle   
   151.     a,b:Count;                                                     
   152.                                                                    
   153. begin                                                              
   154.   for i in feldmin..feldmax loop                                   
   155.     for j in feldmin..feldmax loop                                 
   156.       nachbarn:=0;          --neue Zelle 0 setzen                  
   157.       for x in 1..3 loop   --nachbarn ermitteln                    
   158.         for y in 1..3 loop                                         
   159.           a:=i+x-2;                                                
                      |                                                    
        invalid operand types for operator "+"                             
z                                                                          
z   160.                  b:=j+y-2;                                        
                      |                                                    
        invalid operand types for operator "+"                             
z                                                                          
z   161.                  if source(a,b)=TRUE then nachbarn:=nachbarn+1;   
   162.           end if;                                                  
   163.         end loop;                                                  
                                                                           



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1994-12-09 15:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1994-12-02 13:23 GNAT-Problem '+'-operator with Count Andreas Krohn
1994-12-03 12:24 ` Jim Marks
1994-12-05 12:46 ` Joseph Skinner
1994-12-07 22:54   ` Bob Duff
1994-12-08 19:45     ` Jahn Rentmeister
1994-12-09 15:33 ` Robert Dewar

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