programming tools for Windows applications development
  Home  |   SwiftForth Archive  |   SwiftX Archive  |

Re: Definition of ENDING in Files.f and use of |

From: Leon Wagner <leon_at_forth.com>
Date: Wed, 24 Jan 2007 09:45:43 -0800

Comments inserted below...

> -----Original Message-----
> [mailto:sftalk-bounce_at_forth.com] On Behalf Of Gene LeFave
> Sent: Wednesday, January 24, 2007 09:36
> Subject: [sftalk] Re: Definition of ENDING in Files.f and use of |
>
> Morten,
>
> The swiftforth kernel contains the basic FORTH dictionary.
>
> If you include MAKE.F which is in the src\kernel\win32
> directory, you will be
> compiling a new swiftforth kernel. During this step words
> that are only used
> internally are compiled without heads (entries in the
> dictionary). The |
> means that the next word will be compiled without a head and
> won't be
> defined in the new kernel.
>
> | can only be used in files that will be built into the kernel.
>
> Changing the kernel should be done with care.

NB: If there is a | in front of the word, that means the author did not
intend this function to be available to the end user.

You have three choices:

1) Remove the | and recompile the kernel (not recommended as next time you
get a maintenance release, that change will be overwritten).

2) Copy the source code (without the '|') into your application.

3) Find a different way :-)

--Leon

>
> Gene
>
> On 24 Jan 2007 at 8:13, morten.steien_at_chello.no wrote:
>
> > In the Files.f file the definition of ENDING starts like this
> > | : ENDING ( addr len char -- addr len )
> > >R BEGIN 2DUP R@ SCAN
> >
> > The word ending is used later in Files.f not available to me.
> > When I try to use | before a definition I get that | is not defined.
> >
> > How and why is this uesd in the Files.f source?
> >
> > Morten A. Steien
> >
> >
> > --
> > Bamsen
> >
> >
> ----------------------------------------------------------------------
> > sftalk_at_forth.com The SwiftForth programming discussion
> email list
> > To unsubscribe, send subject "unsubscribe" to
> sftalk-request_at_forth.com
> > For list command help, send subject "help" to
> sftalk-request_at_forth.com
> > Message archives are located at http://www.forth.com/archive/sftalk
> >
> ----------------------------------------------------------------------
> > This list is a forum for SwiftForth users. For product support and
> > bug reports, please send email to support_at_forth.com
> >
> ----------------------------------------------------------------------
> >
> >
> >
>
>
>
> ----------------------------------------------------------------------
> sftalk_at_forth.com The SwiftForth programming discussion email list
> To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
> For list command help, send subject "help" to sftalk-request_at_forth.com
> Message archives are located at http://www.forth.com/archive/sftalk
> ----------------------------------------------------------------------
> This list is a forum for SwiftForth users. For product support and
> bug reports, please send email to support_at_forth.com
> ----------------------------------------------------------------------
>
>

----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
For list command help, send subject "help" to sftalk-request_at_forth.com
Message archives are located at http://www.forth.com/archive/sftalk
----------------------------------------------------------------------
This list is a forum for SwiftForth users. For product support and
bug reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Wed Jan 24 2007 - 09:47:55 PST

This archive was generated by hypermail 2.2.0 : Tue Dec 02 2008 - 03:04:41 PST