Menu

evaluate

5 days ago
5 days ago
  • Pere font vilanova

    when i have:
    -test
    marker -test
    ram create buf 20 allot
    ram create buf2 20 allot
    test2 buf c@+ evaluate buf2 c@+ evaluate ;
    s" : test 1 2" buf place
    s" + . ;" buf2 place
    test2
    test 3
    in a text file and I make copy and paste to the forth terminal, this works fine.
    but if I put this in a buffer and then I make evaluate, the system don't recognizes the -test word and give me aan error message and the evaluate stops.
    then i can not save files starting with -name marker -name. is there any way to solve this small problem?
    in my file system manager i can save any file but I can not use this waY with marker.....
     
  • Mikael Nordman

    Mikael Nordman - 5 days ago

    Yes. That's a problem with EVALUATE. A proper solution would be to implement CATCH/THROW in FF, so that EVALUATE could catch the error and continue. With a simple ABORT that is not possible.

     
  • Mikael Nordman

    Mikael Nordman - 5 days ago

    I quess the only solution for now is to use -marker from the command line and then load the file(s).

     
  • Mikael Nordman

    Mikael Nordman - 5 days ago

    I actually found a simple solution to change INTERPRET to continue interpreting when a error is encountered. Not much tested, but it works with my block system.
    So now when a -marker word is encountered, interpret will continue with the next word.

    You can try and patch your FF with this, unless of course you are using Scamp words.

    IUNKNOWN:                           ;  a f
            dec2    W14, W14
            rcall   CFETCHPP
            rcall   TYPE
            rcall   XSQUOTE
            .byte   2
            .byte   '\?',NAK_
            .align  2
            rcall   TYPE
    ;        rcall   FALSE_
    ;        rcall   QABORTQ
            bra     INTER1
    INTER6: 
    
     
  • Pere font vilanova

    thanks for the information. but yes, i'm using scamp words. but because i'm using the FSM with vocabularies, really is not necessary use the marker option. I keep the specific words in different vocabularies.and i load them only when necessary.

     

Log in to post a comment.