doublenit

main
Matthew Butterick 8 years ago
parent 206f405a65
commit 7a0edd1402

@ -91,7 +91,8 @@ https://github.com/mbutterick/restructure/blob/master/src/Struct.coffee
(define ctx (mhasheq 'parent parent
'val val
'pointerSize 0))
(+ (for/sum ([(key type) (in-dict fields)])
(+ (for/sum ([(key type) (in-dict fields)]
#:when val)
(send type size (ref val key) ctx))
(if include-pointers (· ctx pointerSize) 0)))

Loading…
Cancel
Save