
3.7 CLOS optimizations
slot-value within adefmethod form will generally be optimized at compile time, either by open-coded access or by direct dispatch to an effective method function (arising from, for example, the user's methods onslot-value-using-class). In general, this will apply only to objects of metaclassstandard-class (or at least only to objects whose metaclass is a subclass ofstandard-class). The constraints under which the compiler will emit the optimized code are:defmethod.setq'd anywhere in thedefmethod body. Note that sincewith-slots is purely a syntactic macro that expands into calls toslot-value, the optimization for it reverts to just the optimizations mentioned forslot-value.

Generated with Harlequin WebMaker