RosettaCodeData/Task/Copy-a-string/Ada/copy-a-string-3.ada

7 lines
300 B
Ada
Raw Permalink Normal View History

2013-04-10 23:57:08 -07:00
-- Instantiate the generic package Ada.Strings.Bounded.Generic_Bounded_Length with a maximum length of 80 characters
package Flexible_String is new Ada.Strings.Bounded.Generic_Bounded_Length(80);
use Flexible_String;
Src : Bounded_String := To_Bounded_String("Hello");
Dest : Bounded_String := Src;