CBFalconer wrote:
There should be no need for assert statements, with properly restricted subranges, as in the type definition of base above.
I agree to this part (though not to the clumsy initialization and the debates about "what is a string" which is well anwered in EP). But declaring the base of type `2 .. 36' will help avoid any special checks in the routine. (Though GPC doesn't range-check yet, but it will soon, and it's nothing for the routine to worry about.)
Frank