[Pharo-project] #reversed and ANSI compatibility

Lukas Renggli renggli at gmail.com
Thu May 13 13:13:30 EDT 2010

> Maybe it was easier to define
> reverse
>        ^self reversed
> in a package of seaside with a category  *Seaside-Pharo ?  that's maybe what
> Dale did ?

No, he changed the code to call #reversed. This however broke Seaside
for all other platforms that properly implement the ANSI standard.
Having a Seaside specific implementation would be feasible, but then
we have to call it #greaseReverse or something, otherwise it will
dirty the system package when loading.

Even if the name is unfortunate, it doesn't make sense to break ANSI
compatibility. This is the only thing we can trust on today for
writing platform independent code.


Lukas Renggli

More information about the Pharo-dev mailing list