Mikael Djurfeldt <[EMAIL PROTECTED]> writes:
> set-procedure-property! doesn't do proper type check on first arg
Incidentally, I'm in favour of unifying object and procedure
properties. That is, there would be only object properties, and the
`object-property' functions can be used to access them, including on
procedures, which would be nothing special.
Underneath, procedures would store their properties directly, while
other objects might have to use a global hash table. The
`object-property' functions would hide this implememtation detail from
the user.
The `procedure-property' functions could be seen as optimized
accessors that work only on procedures, but faster. However, they
might not really be faster since they have to check the type of their
argument anyway.
Looking closer into procprops.c, I would say that unifying procedure
and object properties would be an improvement anyway, because we could
remove that scm_stand_in_scm_proc ickyness.
ObBUG: set-procedure-properties! does the same wrong thing. Are you
going to fix it, Mikael?