Yurttas/PL/IL/Ada-95/ProgUnits/G/ex 00.adb
Jump to navigation
Jump to search
1--
2-- Copyright (C) 1998
3-- All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
4--
5-- Permission to use, copy, modify, and distribute this
6-- software and its documentation for EDUCATIONAL purposes
7-- and without fee is hereby granted provided that this
8-- copyright notice appears in all copies.
9--
10--
11
12-- date : January 1, 1998.
13-- author : Salih Yurttas.
14
15-- purpose : to demonstrate a procedure structure which
16-- is the essence of Ada-95 programming structuring and
17-- composition.
18
19-- ex_00.adb
20
21
22with Text_IO; use Text_IO;
23
24procedure EX_00 is
25
26 package Int_IO is new Integer_IO(Integer); use Int_IO;
27
28 X : Integer := 2;
29
30begin
31
32 New_Line;
33
34 Put("X = ");
35 Put(X);
36
37 New_Line;
38
39end EX_00;