[EMAIL PROTECTED] (Ludovic Courtès) writes:
>
> Changing `record-accessor' as in the attached file yields

Gets rid of one scheme function call in the normal case does it?

I expect an apply-able smob thingie would be fastest (and smaller too)
for accessors and modifiers, if anyone felt like going down that track.
Probably quite worthwhile on the general principle of getting low-level
bits running fast.

> Type-safety is still guaranteed (e.g., `struct-vtable' will fail if OBJ
> is not a struct), though not as precisely (e.g., instead of a
> `not-a-record' error, we get a `wrong-type-arg' error in
> `struct-vtable').

As long as it's still `wrong-type-arg' it ought to be ok.  If the whole
lot goes into C at some stage then the errors will be easier to control.


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel

Reply via email to