Well, I didn't write the definitions in the interpreter; I loaded them
with load-module, but either way, you're right: the problem was that
things weren't compiled. Do you think it's possible for generic words
to automatically be decompiled when an issue like this comes up?

On 1/13/07, Slava Pestov <[EMAIL PROTECTED]> wrote:
> Just to clarify what is going on:
> On 13-Jan-07, at 1:14 AM, Chris Double wrote:
>
> > An easy way to show the problem is:
>
> You pasted the definitions in the listener.
>
> >
> > ! this works
> > 1 T{ circle f "abc" 0 } nth .
>
> Here, you're executing the interpreted definition of 'nth' (you just
> redefined nth, without recompiling; its an interpreted word now).
> >
> > ! This gives an error about nth not being a method for circle
> > 1 T{ circle f "abc" 0 } nth-unsafe .
>
> The 'nth-unsafe' word is still compiled and it will refer to the old,
> compiled definition of 'nth' until a 'recompile'.
>
> > ! This works if you step-in through the code, but not if you
> > 'continue'
> > 1 T{ circle f "abc" 0 } [ nth-unsafe ] walk
>
> The single-stepper always the interpreted definitions of words, which
> are the most up to date.
>
> Slava
>
>
> -------------------------------------------------------------------------
> 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

Reply via email to