File: prefixed_notation_browsing.adb

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 (25 lines) | stat: -rw-r--r-- 700 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
with Ada.Text_Io;

with Ada.Containers.Doubly_Linked_Lists;

procedure Prefixed_Notation_Browsing is

   use Ada;
   use Text_Io;

   package Integers_Lists is new Containers.Doubly_Linked_Lists (Integer);
   use Integers_Lists;
   My_List : Integers_Lists.List;

begin

   -- Unable to browse the prefixed notation Is_Empty function
   Put_Line ("Is My_List empty? ==> " & Boolean'Image (My_List.Is_Empty));

   -- Observation: if a none prefixed notation exists, as shown below,
   -- GPS can browse normally. Of course, it needs to be uncommented to see
   -- the effect mentioned.
--     Put_Line ("Is My_List empty? ==> " & Boolean'Image (Is_Empty (My_List)));

end Prefixed_Notation_Browsing;