comp.lang.ada
 help / color / mirror / Atom feed
From: ae@sei.cmu.edu  (Arthur Evans)
Subject: Re: Implementation Problems w/ the Package Calendar
Date: 13 Nov 91 16:12:07 GMT	[thread overview]
Message-ID: <34957@as0c.sei.cmu.edu> (raw)

hart@zeus.franklin.edu (Drew Hart) asks how to output a value of type
Duration.

Duration is a fixed point type declared in package Standard (LRM C(19)).
If you look up Duration in the LRM's index, you will find references to
section 9.6 (in which package Calendar is introduced) and to Appendix C;
the latter contains its declaration.

To output values of this type, you must instantiate Text_IO.Fixed_IO.
That package's spec is in 14.3.10 and it is explained in 14.3.8.  Write

    package Duration_IO is new Text_IO.Fixed_IO(Num => Duration);

and you then have access to the subprograms described in 14.3.8

Good luck!

Art Evans
----------------------------------------
Arthur Evans, Jr, PhD		Ada Consultant
461 Fairview Road
Pittsburgh PA  15238-1933
412-963-0839
ae@sei.cmu.edu

             reply	other threads:[~1991-11-13 16:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1991-11-13 16:12 Arthur Evans [this message]
  -- strict thread matches above, loose matches on Subject: below --
1991-11-13 13:33 Implementation Problems w/ the Package Calendar cis.ohio-state.edu!zaphod.mps.ohio-state.edu!malgudi.oar.net!zeus.frankli
replies disabled

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