On Tue, 23 Jan 2007 15:30:58 -0500, Slava Pestov wrote
> 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
f -shell=tty
"apps/mytests" run-module
Old Output:
Hello World
Data stack underflow
Yea, I resolved it. I had the 'drop' word after my 'print', removed it and
didnt reload my code.
Resolved now.
--
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