[comp.lang.ada] type conversion ?

Bryan@SIERRA.STANFORD.EDU (Doug Bryan) (11/11/86)

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;
-------