On 18/01/2016 10:14, Phil Clayton wrote:

The intention is that they should work correctly for negative offsets.
It seemed more useful that way.  Word.toIntX does imply that the basis
library understands signed word values.

Yes - the getX/setX operations are more useful by allowing negative
offsets.  Unfortunately, the word offset can be viewed in an unsigned
way.  I would suggest e.g.
   getX : voidStar * int -> Word8.word
unless use of an int introduces more overhead.

I don't want to use "int" here for these very low-level functions. It would require a tag test to check that it isn't a long-format arbitrary precision number.

David
_______________________________________________
polyml mailing list
[email protected]
http://lists.inf.ed.ac.uk/mailman/listinfo/polyml

Reply via email to