comp.lang.ada
 help / color / mirror / Atom feed
From: Bryan@SIERRA.STANFORD.EDU (Doug Bryan)
Subject: type conversion ?
Date: Mon, 10-Nov-86 23:19:37 EST	[thread overview]
Date: Mon Nov 10 23:19:37 1986
Message-ID: <12253968541.20.BRYAN@Sierra.Stanford.EDU> (raw)

Hi all,

Is the following valid?  If so, which syntagma takes care of the following
two expressions?

	Rec (R)
	String (N)	

doug
--------

procedure Type_Conversion is
   type Rec is record
      I : Integer; F : Float;
   end record;
   N : String (1 .. 10) := (others => ' ');
   R : Rec := (1, 2.2);
   I : Integer; 
   C : Character;
begin
   I := Rec (R).I;
   C := String (N) (2);
end Type_Conversion;
-------

                 reply	other threads:[~1986-11-11  4:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

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