Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!SUN.COM!wmb From: wmb@SUN.COM (Mitch Bradley) Newsgroups: comp.lang.forth Subject: Re: Forth in C Message-ID: <8911142050.AA16286@jade.berkeley.edu> Date: 6 Nov 89 18:34:16 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: Forth Interest Group International List Organization: The Internet Lines: 14 > I only need one hack to make this work: I need to be able to > take the address of a label, i. e. Sorry, you lose. It can't be done in portable C. Labels don't have visible addresses. Their scope is entirely contained within the enclosing subroutine. What you are suggesting is the first thing that I thought of doing when I was writing C Forth 83, but I had to give up on that implementation strategy. The two options that I know of are indirect subroutine calls (relatively slow) and a big switch with an integer selector (which is what C Forth 83 uses). Mitch