[squeak-dev] would anyone object if I committed my changes to Integer>>hex?

Eliot Miranda eliot.miranda at gmail.com
Sat Jul 17 21:21:35 UTC 2010


Hi All,

    in creating the Cog VMMaker image from Squeak 4.1 that is in the svn
tree for Cog (http://www.squeakvm.org/svn/squeak/branches/Cog) I had to
revert a change made to Integer>>hex.  I don't want to point fingers but it
was IMO an unnecessary change; one can always add a new selector if one
wants new behaviour and existing code (in this case VMMaker) depended on the
old behaviour.  BTW, the difference is that originally Integer>>hex (&
Integer>>hex8) prefixed their hex output with the base so that 123 hex is
'16r7B' and 123 hex8 '16r0000007B', whereas the new semantics omits the
prefix so that 123 hex is '7B'.  The old semantics is depended on by various
tests as well it providing the convenience of being able to select and print
the result.  I would like to revert the behavior, essentially because a) one
should not unnecessarily break backwards-compatibility and b) Cog is
potentially useful to a lot of the community.  So views for or against?  Or
should I make it, gack, a VMMaker override (gack, please nooooo)?

best
Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20100717/f87f9ca5/attachment.htm


More information about the Squeak-dev mailing list