lace_gel_0.1.0_2c333035/source/concrete/gel-mouse-local.adb

 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
with
     ada.unchecked_Deallocation;

package body gel.Mouse.local
is

   package body Forge
   is
      function to_Mouse (of_Name : in String) return Item
      is
      begin
         return Self : constant Item := (lace.Subject.local.Forge.to_Subject (of_Name)
                                         with null record)
         do
            null;
         end return;
      end to_Mouse;



      function new_Mouse (of_Name : in String) return View
      is
      begin
         return new Item' (to_Mouse (of_Name));
      end new_Mouse;

   end Forge;



   procedure free (Self : in out View)
   is
      procedure deallocate is new ada.unchecked_Deallocation (Item'Class, View);
   begin
      Self.destroy;
      deallocate (Self);
   end free;


end gel.Mouse.local;