From: Warren on 19 Apr 2010 11:27 Adam Beneschan expounded in news:2dab1630-4abd-4d5b-a286- 6fdbd18ce19c(a)b33g2000yqc.googlegroups.com: > You don't even need two type conversions: > > S : String_Type := "Abc."; > subtype String_Subtype is String(1..S'Length); > T : String_Subtype; > -- T : String(1..4); -- this works too > begin > T := String_Subtype(S); Even better, thanks. Warren
First
|
Prev
|
Pages: 1 2 Prev: ANN: Interval Arithmetic for Ada v1.8 Next: confusion with string initialization |