Hello,

In the channel, someone (csci) wanted to know how to start httpd. Doublec and 
slava helpfully provided this:

"libs/httpd" require USE: httpd set-doc-root [ 8888 httpd ] in-thread

Then the pointed out that you can't run all that on one line. This works:

"libs/httpd" require
USE: httpd
set-doc-root [ 8888 httpd ] in-thread

The require has to go on it's own line. Then the USE:. Finally the code that 
uses the vocab can go.

I just wanted to point out that with libs/vocabs, this would work:

USE: httpd set-doc-root [ 8888 httpd ] in-thread

httpd would have to be changed a bit to work with libs/vocabs, so it's just an 
example.

Since I'm always hacking on Factory, I usually don't save it into my image 
file. I always reload it from disk. So starting it is as simple as:

./f -shell=tty -e='USE: factory f start-factory'

The magic is that Factor becomes aware of the vocabulary at parse time. The 
parses sees USE: httpd, Factor realizes that that vocabulary doesn't exist 
yet, loads it from disk, does the actual use+, and then continues parsing the 
line.

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