Path: utzoo!attcan!uunet!willett!ForthNet From: ForthNet@willett.UUCP (ForthNet articles from GEnie) Newsgroups: comp.lang.forth Subject: Advanced Beginners Message-ID: <1303.UUL1.3#5129@willett.UUCP> Date: 11 Jul 90 03:01:34 GMT Organization: String, Scotch tape, and Paperclips. (in Pgh, PA) Lines: 36 Category 2, Topic 8 Message 53 Mon Jul 09, 1990 D.RUFFER [Dennis] at 20:32 EDT Re: BOB CAVANAUGH > Can anybody out there give me a way to jump back to a word > after an error condition is set? ... I tried > ' main execute and it went into never-never land. Bob, I'd suspect that you are overflowing your return stack when you try to do that. If you are doing this fairly deeply into you program and your main routine calls a bunch of things before getting to the menu, then this is pretty likely your problem. You need to figure out how to reset the return stack before executing main. Even if this is not what is hurting you yet, you will need to deal with the return stack problem eventually. Another possiblity is that your main was not defined when you define the ' main execute and you are executing some other definition of main that is doing something nasty. Check your load order to find out if that is the case. If so, you will need to use a DEFERed word to resolve the forward reference for you. > I am using V3.5 I assume this is F-PC, but I don't use it much. Does it have some kind if contol over ABORT? Realistically, your main word is nothing more than another version of QUIT (where ABORT usually goes to). Many systems give you a way to change where ABORT goes to so that you can define alternative QUIT's. Check out how ABORT or ABORT" works and you will probably find a way that you can use. DaR ----- This message came from GEnie via willett through a semi-automated process. Report problems to: uunet!willett!dwp or willett!dwp@hobbes.cert.sei.cmu.edu