comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <rm.tsoh+bauhaus@maps.futureapps.de>
Subject: Re: function Clock return Time; Time is a number, a string...?
Date: Wed, 07 Nov 2007 11:49:45 +0100
Date: 2007-11-07T11:48:46+01:00	[thread overview]
Message-ID: <1194432585.1007.69.camel@kartoffel> (raw)
In-Reply-To: <1194388351.937058.41110@k79g2000hse.googlegroups.com>

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.






  parent reply	other threads:[~2007-11-07 10:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-06 22:32 function Clock return Time; Time is a number, a string...? j.khaldi
2007-11-06 23:21 ` anon
2007-11-07  0:15 ` Jeffrey Creem
2007-11-07 10:49 ` Georg Bauhaus [this message]
2007-11-07 10:56   ` Georg Bauhaus
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox