Are there Ada 20xx solutions missing that R. Dewar would have added to this page?

Maybe something from the comp.lang.ada archive?

1 Like

Very interesting to browse, thanks Jeremy. It is interesting that he also says Ada has much more flexible pointer arithmetic than C in the above link.

Though I really meant 1a looks most readable but 1c more portable. There is a Spark compatible version from Rod Chapman here.

I shall likely turn Spark off for a tiny function that just does byte access, etc…

Perhaps C style shifting is the answer though my feeling is that it is more likely to hide bugs.

I was just wondering if Ada 2012 or later might offer anything new that R. Dewar, might have added to that page if he were to write it today?