Re: Real Time IO routines answering Simon Wright part 2



anon@xxxxxxxx (anon) writes:

with Ada.Text_IO ;

package body Ada.Real_Time.IO is

--
-- Time specification comes from the parent's code.
--
package D_IO is new Ada.Text_IO.Fixed_IO ( Time ) ;

Personally I see nothing intrinsically wrong with extending the RTL if
your compiler lets you.

But this is completely different from implying to the OP that it's OK
to use unchecked conversion from a private type.

And since Dmitry has posted a portable and legal way of doing it I
think we should do it his way!

--S
.