chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] coops


From: schugk
Subject: Re: [Chicken-users] coops
Date: Wed, 02 Feb 2011 15:42:21 +0100
User-agent: Internet Messaging Program (IMP) H3 (4.1.6)

So you example above should basically work, but note that the method
for `<pair>' will always override the one for `<list>', since the
latter is a supertype of the former.

That is the problem i am talking about. I know the reason. The new version (1.4) does not fix that. I can not call a specialized method for <list> if it is specialized for <pair> too. One solution is to specialize show for <list> after that one for <pair>. That is not possible if <pair> should inherit from <list>. ... Ok, i have to change that in my local version of coops and mention it in the documentation.

Sandro




reply via email to

[Prev in Thread] Current Thread [Next in Thread]