Re: Silly question about strings



>>>>> "Martin" == Martin Dowie <martin.dowie@xxxxxxxxxxxxxx> writes:


Martin> They could always be 'defined' as proposed by Steve but
Martin> the implementation might use 'magic' to make it happen.

.... and if this magic meant you could do:

package Ada.Strings.UTF8 is new Ada.Strings.String_Base( UTF8 );

I think everybody would be happy ;-).

Or is that too much magic?

Unfortunately, Steve's proposal didn't take into account Fixed length
vs Unbounded types. Not sure if that could be done with an additional
parameter to String_Base, or if duplicating String_Base would be the
ideal solution.
--
Brian May <bam@xxxxxxxxxxxxxxxxxxx>
.