Hello,

I know people hate perl. But it's been around a while and it has the largest 
module collection of any language. Check out this page:

        http://search.cpan.org/

Click on some of the categories to get a feel for how their modules are named.

Perl searches for modules in the directories listed in the @INC array. This is 
basically what the vocabulary-roots variable is. DrScheme uses a collects 
variable. Ruby has RUBYLIB.

If Factor can scale up to something the size of CPAN, we'll be doing good. I 
think the only way to handle that is with an @INC like mechanism.

When you browse CPAN, note the lack of any hardcoded hierarchy. Authors are 
free to name their modules whatever they want. If you have a module named:

        Foo::Quark

You can use it with:

        use Foo::Quark;

You can get help on it with:

        $ perldoc Foo:Quark

It's downloadable as a file named:

        Foo-Quark-0.01.tar.gz

Perl modules have to be installed. With a Factor vocabulary, all you have to 
do is copy the vocabulary folder to one of the roots.

Here's a nice example of a CPAN module for CAD drawing:

        http://search.cpan.org/~ewilhelm/CAD-Drawing-0.26/

Note how it's comprised of various submodules. The vocabs system supports this 
sort of organization. See my x and wm vocabs for examples.

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

Reply via email to