I just tested your code and it works. It looks fine too.
How are you loading it? At what point exactly do you get a data stack
underflow? What is the call stack traceback?
Also, you only need one PROVIDE: form per module, in your load.factor
file, not one per source file.
Slava
On 23-Jan-07, at 2:23 PM, bbrown wrote:
> With the code below, I keep getting "Data stack underflow" error/
> warning. The
> code runs, I was just wondering about the warning.
>
> I dont think my code is looking for an element to pop?
>
> Factor 0.87
>
> ------
>
> ! load.factor
> !
> PROVIDE: apps/mytests
> { +files+ {
> "mytests.factor"
> } } ;
>
> ------
>
> ! mytests.factor
> USING: kernel io prettyprint ;
> IN: mytests
>
> : run-example ( -- )
> "Hello World" print ;
>
> PROVIDE: apps/mytests ;
>
> MAIN: apps/mytests run-example ;
>
>
> "Thrown by the runtime if an attempt is made to pop elements from
> an empty
> data stack."
>
> Should I use infer?
>
> I will keep asking until I get told to shutup :) Or unless Dan
> tells me to
> go away :).
>
> --
> Berlin Brown
> berlin dot brown at gmail dot com or
> bbrown at botspiritcompany dot com
>
>
> ----------------------------------------------------------------------
> ---
> 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
-------------------------------------------------------------------------
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