Slava,
Another concern with using libs/vocabs a possible explosion in vocabularies.
In considering how to deal with this, someone tossed around the idea of being
able reference a set of vocabularies by name and then doing a USE: on that
set.
Here's an implementation of that idea.
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
USING: parser namespaces hashtables ;
IN: vset
SYMBOL: vsets
H{ { "full" { "kernel" "alien" "math" "threads" } }
{ "collections" { "arrays" "vectors" "strings" "hashtables" } }
{ "ui" { "gadgets" "gadgets-buttons" "gadgets-labels" } } }
vsets set
: use-vset ( vset -- ) vsets get hash add-use ;
: VSET: scan use-vset ; parsing
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
So
VSET: collections
is equivalent to
USING: arrays vectors strings hashtables ;
Ed
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk