File: a.ads

package info (click to toggle)
libgnatcoll 1.7gpl2015-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 17,280 kB
  • ctags: 1,124
  • sloc: ada: 134,072; python: 4,017; cpp: 1,397; ansic: 1,234; makefile: 368; sh: 152; xml: 31; sql: 6
file content (15 lines) | stat: -rw-r--r-- 460 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package A is
   type Index_Type is (Red, Green, Blue);
   type Component is mod 256;
   type Color is array (Index_Type) of Component;

   type Index_Type2 is range 1 .. 3;
   type Color2 is array (Index_Type2, Integer range 1 .. 3) of Component;

   type Color3 is array (Integer range 1 .. 3) of Integer;

   type I1 is interface;
   type I2 is interface;
   type Parent is tagged null record;
   type Ta is new Parent and I1 and I2 with null record;
end A;