-- Collection of code snippets by Arne Vajhøj 
-- (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
with Ada.Text_IO,Ada.Integer_Text_IO,Ada.Strings.Unbounded,Supp.Util,MSSyst.String,MSSyst.Object;

use Ada.Text_IO,Ada.Integer_Text_IO,Ada.Strings.Unbounded,Supp.Util,MSSyst.String,MSSyst.Object;

procedure Strings is

S1 : Unbounded_String;
S2 : MSSyst.String.Ref;
V1 : Integer;

begin
    S1 := To_Unbounded_String("ABC");
    Put(To_String(S1));
    New_Line;
    S2 := +"ABC";
    Put(+S2);
    New_Line;
    Supp.Util.Dump(MSSyst.Object.Ref(S2));
    V1 := 123;
    Put(V1);
    New_Line;
end Strings; 
