10.07.2015 Views

Data Types & Type Checking - Ace

Data Types & Type Checking - Ace

Data Types & Type Checking - Ace

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Ada Strings• Static Length:X: String := Ada.Command_Line.Argument(1);X := “Hello!”;-- will raise an exception if X has length ≠ 6• Dynamic Length:X: Unbounded_String :=To_Unbounded_String(Ada.Command_Line.Argument(1));X := To_Unbounded_String(“Hello!”);Lecture 0631

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!