Hi! it's what I want, Thanks!
2009/2/16 Slava Pestov <[email protected]>: > Hi all, > > I've added a new feature similar to the special resource: prefix on > paths. You can now use a vocab: prefix, and Factor will search > vocabulary roots for that path for you. > > For example, instead of > > "resource:extra/beer/list.txt" ascii file-lines > > you can write > > "vocab:beer/list.txt" ascii file-lines > > This is very useful for data files stored alongside vocabularies, > because it is more robust than a resource: path; you can move the > vocab from extra to basis, for instance, and it will continue to work. > Also, if you have vocab roots outside of the Factor source directory > (resource:) previously there was no way to specify a logical path > which was relative to this vocabulary. Now, you can just use vocab:. > > Note that for nested vocabs, the separator in a vocab: path is / (or \ > if you really want to shackle yourself to Windows); not . So you have > to do this, > > vocab:io/encodings/8-bit/data.txt > > NOT this > > vocab:io.encodings.8-bit/data.txt > > The resource: prefix still works and it has its own use-cases, but > I've updated most usages of it in the repo to use vocab: instead. > > Slava > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Factor-talk mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/factor-talk > ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
