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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8c2975e461a425 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Newsgroups: comp.lang.ada Subject: Re: function Clock return Time; Time is a number, a string...? From: Georg Bauhaus In-Reply-To: <1194388351.937058.41110@k79g2000hse.googlegroups.com> References: <1194388351.937058.41110@k79g2000hse.googlegroups.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1194432585.1007.69.camel@kartoffel> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Date: Wed, 07 Nov 2007 11:49:45 +0100 Organization: Arcor NNTP-Posting-Date: 07 Nov 2007 11:48:46 CET NNTP-Posting-Host: 41970a04.newsspool3.arcor-online.net X-Trace: DXC=04L>b68CCj_Fm0Y?OE@2^XMcF=Q^Z^V3X4Fo<]lROoRQ4nDHegD_]RUjnjC^a1BlZXN[W On Tue, 2007-11-06 at 14:32 -0800, j.khaldi@oltrelinux.com wrote: > In "package Ada.Calendar".. > function Clock return Time; // what is the type of Time here? > A string? A number? Something else? No, because... > "Time" has been declarated "private", this means it is untyped yet; ... this means Time is indeed fully typed, but privately--stay out of its living room and use the public interface of the type Time to deal with Time objects. See Jeffrey Cream's post for an example, and http://www.adaic.org/standards/05rm/html/RM-9-6.html for more details.