> Is there something wrong with simply doing this:
>
>       "foo" words [ forget ] each
>
> when foo is reloaded?

Hmmm. So I'm trying this out and noticing that this isn't enough.

--------------------foo.factor----------------------------------------
IN: foo

: a 10 ;

: b 20 ;

: c 30 ;
----------------------------------------------------------------------

--------------------bar.factor----------------------------------------
USE: foo

IN: bar

: aa a ;

: bb b ;

: cc c ;
----------------------------------------------------------------------

"foo.factor" run-file "bar.factor" run-file

Now if I change a:

        : a 1 ;

And run-file on foo.factor, aa in bar get's recompiled. Nice. But if I do 
my "forget" trick, aa doesn't get see the new definition. So now I'm trying 
this. If I want to load foo, I do:

        "foo" words             ! get the words
        dup                     ! save a copy
        [ usage ] map           ! see who uses the words in foo (words in bar 
in this case)
        swap                    ! get back the "foo" words
        [ forget ] each         ! forget em
        "foo.factor" run-file   ! now reload the file
        concat [ reload ] each  ! reload all the words use the "foo" words

The last line should actually do something like get a list of files that the 
dependent words come from, do a 'uniq' on that list and then reload those 
files.

Maybe I should try your marking words idea...

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to