help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Generic functions: Specializers like `or' or `memq'?


From: Stefan Monnier
Subject: Re: Generic functions: Specializers like `or' or `memq'?
Date: Fri, 05 Nov 2021 17:17:42 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> My earliest confusion began when I decided that if I could find the part
> of the code that runs the `eql' specializer (or do we call it the `eql'
> generalizer?) and then worked back from there, I would be able to make
> sense of everything. But I couldn't even find the bit of code that looks
> like (eql <val> <tag>)! And still can't.

Nah, that would be too easy.
Instead it happens implicitly via a lookup in a hash-table.

I suspect that the code for cl-defstruct specializer might be easier to
understand in this respect.


        Stefan




reply via email to

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