Re: [Factor-talk] Stack effect declaration is wrong

2014-08-24 Thread mr wzrd
Er, nevermind, seems to work now somehow.

On 08/24/2014 01:01 PM, mr wzrd wrote:
> Hello list.
> 
> Sometimes I get an error that a stack effect declaration is wrong,
> and then can't figure out why.
> 
> --- The word
> historical-prices-from-year cannot be executed because it failed to
> compile
> 
> Stack effect declaration is wrong inferred ( x x x x -- x ) 
> declared ( symbol year -- csv ) 
> ---
> 
> If I put "BPT" and "2009" on the stack, then run 
> "historical-prices-from-year", in the listener, I get the above
> error.
> 
> If I put "BPT" and "2009" on the stack, then paste the code for 
> "historical-prices-from-year", in the listener, it works.
> 
> What am I missing?
> 
> Cheers, mrw
> 

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


[Factor-talk] Stack effect declaration is wrong

2014-08-24 Thread mr wzrd
Hello list.

Sometimes I get an error that a stack effect declaration is wrong, and
then can't figure out why.

---
The word historical-prices-from-year cannot be executed because it
failed to compile

Stack effect declaration is wrong
inferred ( x x x x -- x )
declared ( symbol year -- csv )
---

If I put "BPT" and "2009" on the stack, then run
"historical-prices-from-year", in the listener, I get the above error.

If I put "BPT" and "2009" on the stack, then paste the code for
"historical-prices-from-year", in the listener, it works.

What am I missing?

Cheers,
mrw


dax.factor
Description: Binary data
--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk