[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: structures

Stewart Clamen built a structures packages for MIT CScheme which is almost
identical to the one proposed by Norman Adams.  It however contained a few
additional ideas which I believe are worth considering.  These all take the
form of options at strucutre declaration time.  The first is an option as to
whether a structure should carry along its type and be runtime type checked
each time an accessor or mutator utilizes it.  This allows the user
a trade-off between type security and execution efficiency.  The second option
is the ability to specify whether accessors, mutators, etc should be built as
procedures, macros, or both.  In order to efficiently manipulate structures
it may be desirable to have accessors and mutators be macros to avaoid the
extra function call overhead.
					Morry Katz