Re: Win32Forth question, Bill Ragsdale
  Home FAQ Contact Sign in
comp.lang.forth only
 
Advanced search
POPULAR GROUPS

more...

 Up
Re: Win32Forth question, Bill Ragsdale         

Group: comp.lang.forth · Group Profile
Author: Bill Ragsdale
Date: Sep 19, 2008 11:58

Group,

Good Ole Forth. I answered my own question. R>DROP is sufficient to
un-nest two levels up.

: ACTION-ITEM 101 R>DROP ;
: CALLING-ROUTINE 1 ACTION-ITEM .” don’t return here” DROP DROP ;
: OUTER-ROUTINE CALLING-ROUTINE .” return here with 101 and 1” ;

Does work fine.

Bill Ragsdale bill (at) billragsdale.cc

=========

On Sep 19, 11:31 am, Bill Ragsdale wrote:
> Hi group,  I'm back to Forth for a ham radio application using
> Win32Forth and lovin' it.
>
> I'm building a radio direction finder with a PIC processor.  I need
> the following for testing and later for a Forth-PIC target compiler.
> I need to un-nest from a colon definition returning two levels up the
> calling sequence in this form:
>
> : ACTION-ITEM     101    DOUBLE-UNNEST   ." This doesn't execute"   ;
>
> : CALLING-ROUTINE  1 ACTION-ITEM .” don’t return here” ;
>
> : OUTER-ROUTINE  CALLING-ROUTINE    .” return here with 101 and 1”  ;
>
> Any suggestions?
>
> Best regards,
>
> Bill Ragsdale
> b...@billragsdale.cc
> 530-867-6241
no comments
diggit! del.icio.us! reddit!