>
> I created the file
> Hello-world.factor from here
>
> http://gitweb.factorcode.org/gitweb.cgi?p=factor;a=blob;f=extra/hello-world/hello-world.factor;hb=HEAD
>
>  1 USE: io
>  2 IN: hello-world
>  3
>  4 : hello ( -- ) "Hello world" print ;
>  5
>  6 MAIN: hello
>
> This works in the Listener.
> However when I run from the command line
>
> Factor hello-world.factor
>

If you run it like that, it does not execute the MAIN: word.  Try running it
like:

    ./factor -run=hello-world

Or, if you'd rather run it as a single file "script", remove "MAIN:" and
just call the "hello" word at the end of the file.

Thanks,
John.
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to