add invalidate-memoized to extra/memoize so that specific entries can be removed from the memoization cache. This is used in cached-cairo ungraft* to ensure that textures re-rendered.

db4
Matthew Willis 2008-05-25 12:00:55 -07:00
parent 87b6cb5d40
commit e1669916f6
1 changed files with 3 additions and 0 deletions

View File

@ -52,3 +52,6 @@ M: memoized definition "memo-quot" word-prop ;
: reset-memoized ( word -- )
"memoize" word-prop clear-assoc ;
: invalidate-memoized ! ( inputs... word )
[ #in packer call ] [ "memoize" word-prop delete-at ] bi ;