Απ: Re: Customization of evaluation for a specific custom type of object



Thanks for such a quick answer. I will definitely try to understand what you wrote since I am new, but let me ask a this so as to understand better: Apart from the fact that we cant change cl:eval because that is how it is, why wouldnt it be reasonable or acceptable to be able to override (eval XXX) when XXX inherits from some type or more generally when XXX satisfies a predicate and make it do our stuff? Wouldnt it be like a kind of specializing eval on our type? Why doesnt it make sense? At least theoretically.
2nd question: You said that object evaluate to themselves, but what about bindings ? Can we intercept the evaluation of variables and change their value before evluating them? Like specializing symbol-value and returning the fetched object but what about lexical bindings... Comments?
.