The way you would do this depends on the ada environment you are using:
------------------------------------------------------------ -- Define standard I/O packages for numbers -- -- Chris Lokan -- 26 July 1995 ------------------------------------------------------------ with TEXT_IO; package int_io is new TEXT_IO.INTEGER_IO(INTEGER); with TEXT_IO; package float_io is new TEXT_IO.FLOAT_IO(FLOAT);
adac basic_io.a
------------------------------------------------------------ -- int_io.ads - Declare standard integer I/O package -- -- Lawrie Brown / 4 Aug 95 ------------------------------------------------------------ with TEXT_IO; package int_io is new TEXT_IO.INTEGER_IO(INTEGER);
------------------------------------------------------------ -- float_io.ads - Declare standard float I/O package -- -- Lawrie Brown / 4 Aug 95 ------------------------------------------------------------ with TEXT_IO; package float_io is new TEXT_IO.FLOAT_IO(FLOAT);
gnatcc int_io.ads
gnatcc float_io.ads