summaryrefslogtreecommitdiffstats
path: root/struct.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-10-03 15:34:59 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-10-03 15:34:59 -0700
commit38a2d429dfdc271ded13b3e446d75285fc875511 (patch)
treeacbabcaa7959ec9c535d7e5af6dd437bd96a5232 /struct.h
parent139fae50e175a067ccd34c276f662e8abc14bec3 (diff)
downloadtxr-38a2d429dfdc271ded13b3e446d75285fc875511.tar.gz
txr-38a2d429dfdc271ded13b3e446d75285fc875511.tar.bz2
txr-38a2d429dfdc271ded13b3e446d75285fc875511.zip
Optimization: elide some nil slot initializations.
If a defstruct slot specifier calls for a slot to be initialized to nil, that doesn't have to be done explicitly if the slot isn't inherited. * share/txr/stdlib/struct.tl (sys:prune-nil-inits): New function. (defstruct): Use prune-nil-inits to try to reduce the lists of static and instance slot specifiers.
Diffstat (limited to 'struct.h')
0 files changed, 0 insertions, 0 deletions