"Paul Werkowski" <[EMAIL PROTECTED]> writes: > As far as I know, you can't get what you want from the current system. > The closest would be using with-slots within a method specializing > on a structure-class object, but I am not sure that is any faster > than just using the accessor generated by defstruct. > > Paul
Sorry that I was not clear. I do _not_ want to be _faster_ than the accessor but I would like to be exactly that fast. I want to use generic functions but I want to inline slot accessors and other generic functions if the type of the argument is one of a set of "known" types. I had hoped that defknown/deftransform would do that already. Nicolas. P.S.: Somehow the philosophy behind the structure slot-accessors is wrong (or better, quite low-level, a replacement for not having type declarations everywhere). If I write struct1-dimension everywhere in my program I cannot easily exchange struct1 against struct2. On the other hand, I can do that with generic functions. Unfortunately, generic functions are slow, therefore I want to transform them away when declaring the type of an argument at the beginning of some function.
