GBS1022

From AdaCommons

Jump to: navigation, search

Obsoleted by CGBC.

http://coreland.ath.cx/code/gbs1022

This package provides a reimplementation of the Ada.Strings.Bounded package with the interface modified so that the maximum length of a string is based on the discriminant of the record type (as opposed to a generic formal parameter).

From the Ada 95 rationale (A.2.5 Bounded-Length Strings):

 The major decisions for bounded-length strings were (1) whether the type should be private 
 or not, and (2) whether to realize the maximum length as a discriminant or, instead, as a 
 generic formal parameter.

License

Public Domain

Personal tools