[Cuis] Predicates for dialects

H. Hirzel hannes.hirzel at gmail.com
Sun Jan 27 13:01:25 CST 2013


Hello Casey

I do not think that these predicates are useful.

They are the equivalent of

#isInternetExplorer, #isMozilla or #isChrome

in web programming. And there the common wisdom is not to test for
browsers as such but for the presence of features.

So for the hierarchical list morph you can easily check in the system
dictionary what is there and then adapt your code accordingly.

--Hannes

On 1/27/13, Casey Ransberger <casey.obrien.r at gmail.com> wrote:
> Here's some predicates from Squeak. I should get #isCuis into Squeak soon
> if it isn't there in the trunk (I've been using the stable version lately.)
>
> Example:
>
> SystemVersion current isPharo        --> false
>
> This way we might be able to push some of the changes we need in external
> packages upstream. I like the convention.
>
> --
> Casey Ransberger
>




More information about the Cuis mailing list