[PEAK] Rules override
Sergey Schetinin
maluke at gmail.com
Sat Mar 1 15:07:50 EST 2008
Not exactly, the difference is when the ambiguity occurs, `override'
just uses the first one defined. I can't find a better way to
implement multiple dispatch where some of the rules have the priority
over all the other ones and ambiguity is ignored (assumed to be
handled by the methods themselves). See my example in the last
message.
On Sat, Mar 1, 2008 at 7:45 PM, Phillip J. Eby <pje at telecommunity.com> wrote:
> At 11:50 AM 3/1/2008 +0200, Sergey Schetinin wrote:
> >May I suggest adding `override' to the library itself. Sometimes
> >tailing facilities of `next_method' are not enough.
>
> If I understand your intentions correctly, this is what 'around'
> methods are for.
>
>
--
Best Regards,
Sergey Schetinin
http://s3bk.com/ -- S3 Backup
http://word-to-html.com/ -- Word to HTML Converter
More information about the PEAK
mailing list