init: cleaner using "initialize" instead of "global [ ... ] cache".

db4
John Benediktsson 2015-07-09 19:06:19 -07:00
parent dea0b49283
commit 4bdeaad112
1 changed files with 2 additions and 2 deletions

View File

@ -7,8 +7,8 @@ IN: init
SYMBOL: startup-hooks
SYMBOL: shutdown-hooks
startup-hooks global [ drop V{ } clone ] cache drop
shutdown-hooks global [ drop V{ } clone ] cache drop
startup-hooks [ V{ } clone ] initialize
shutdown-hooks [ V{ } clone ] initialize
: do-hooks ( symbol -- )
get [ nip call( -- ) ] assoc-each ;