Strings.Wide_Hash. Function or package?

In the Reference Manual (RM), the library function Ada.Strings.Hash is specified
(see RM A.4.9 String Hashing).

In addition, Wide_Hash and Wide_Wide_Hash are noted as corresponding to the library functions previously mentioned with minor alterations (RM A.4.7 29/3).

The library function Ada.Strings.Hash is listed under RM Q.3 Language-Denfined Subrograms while Ada.Strings.Wide_Hash is listed under RM Q.1 Language-Defined Packages.

Is there a reason for this? It does not feel correct to my untrained eye.

3 Likes

You are correct: [[Wide_]Wide_]Hash are functions, not packages. You have found an error in the ARM, which you should report, though I’m not sure how that’s done these days.

2 Likes

Looks like the ARM takes report on Github now, so I’ve sent a quick report their way. Thanks for double checking the issue, I thought I was seeing things for a minute there.

Issue

1 Like