![]() |
||
| Home | SwiftForth Archive | SwiftX Archive | |

Rick,
Thanks for the reponse.
> > but is beyond my modest abilities.
You're too humble.
Actually, I can get the CREATE DOES> part to work but it's ugly:
COMMON : add CREATE , DOES> ... COMMON ;
Actually works, or seems to.
But no way can I redefine :. Looking at the source it seems to me
that using common ought to work also, but something goes wrong.
Is POSTPONE allowed within a CLASS? Or to put it differently I want
compile a word that runs the compile time code of a member.
Gene
Date sent: Mon, 17 Dec 2001 08:38:01 -0800
From: "Rick VanNorman" <rick_at_forth.com>
To: sftalk_at_forth.com
Subject: [sftalk] Re: SWOOP Question
Send reply to: sftalk_at_forth.com
>
> Gene,
>
> There is, unfortunately, no simple way to extend the
> class compiler to include defining words. There is so
> much context and state to be considered when creating
> a class reference that I am not sure that a concept as
> simple and elegant as DOES> can work. It may be possible,
> but is beyond my modest abilities.
>
> Rick
>
> *********** REPLY SEPARATOR ***********
>
> On 12/17/2001 at 10:38 AM Gene LeFave wrote:
>
> >While trying to convert some code from another object oriented forth
> >system to swoop I've run into an apparent problem, with dfining
> >words.
> >
> >The following code illustrates the problems. I can't find any way to
> >get it to compile, although I think that it ought to work.
> >
> >I've modified this endlessly, but I'm posting the original here as
> >this is a pretty clean example of the problem.
> >
> >Gene
> >
> >\ test defining words in class
>
>
> ----------------------------------------------------------------------
> sftalk_at_forth.com The SwiftForth programming discussion email list
> To unsubscribe, send subject "unsubscribe sftalk" to listar_at_forth.com
> For help with listar commands, send subject "help" to listar_at_forth.com
> Archives are located at http://www.forth.com/sftalk -- check them out!
> Search the archives! Visit http://www.forth.com/search for details.
>
----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe sftalk" to listar_at_forth.com
For help with listar commands, send subject "help" to listar_at_forth.com
Archives are located at http://www.forth.com/sftalk -- check them out!
Search the archives! Visit http://www.forth.com/search for details.
Received on Mon Dec 17 2001 - 09:14:39 PST
This archive was generated by hypermail 2.2.0 : Sat Nov 22 2008 - 03:04:20 PST