From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,75c440b4b7ed5f91 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!news.doubleslash.org!open-news-network.org!news.teledata-fn.de!newsfeed.arcor.de!194.163.252.179.MISMATCH!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.vmunix.org!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Real Time IO routines answering Simon Wright part 2 Date: Tue, 30 Oct 2007 21:50:27 +0000 Organization: Pushface Message-ID: References: <1193410739.367181.96050@50g2000hsm.googlegroups.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1193781024 24114 62.49.19.209 (30 Oct 2007 21:50:24 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Tue, 30 Oct 2007 21:50:24 +0000 (UTC) Cancel-Lock: sha1:TQK555nTTAUDDzaNn26Vp+acb+c= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (darwin) Xref: g2news2.google.com comp.lang.ada:2660 Date: 2007-10-30T21:50:27+00:00 List-Id: anon@anon.org (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