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

Re: Callback in a Class

From: Rick VanNorman <rick_at_forth.com>
Date: Fri, 30 Mar 2001 17:03:11 -0800

It does, but a callback is much more complicated than just
an "xt" for a catch. I see the code you supplied, but there
isn't enough context for me to grok it. Can you show me
the simplest full example of what is required? One that
I can run and test against?

Thanks,
Rick

*********** REPLY SEPARATOR ***********

On 3/30/2001 at 4:54 PM Mike Ghan wrote:

>It does not *need* to be inside a class, it just would be much cleaner.
>The problem is the callback for the abort procedure needs to be set
>after a print DC is set. This would be buried a bit in the code I
>omitted for clarity. To work around this, I would define a vector
>VARIABLE which would be EXECUTEd inside the class. This vector would be
>set, after I instantiate the class object, to a simple non-class
>callback.
>
>I was hoping some derivative of [MEMBER] CATCH-MEMBER routines you
>posted 7-10-2000
>
>CLASS FOO
>
> : MYWORD -99 THROW ;
> : TEST [MEMBER] MYWORD CATCH-MEMBER ;
>
>END-CLASS
>
>Make sense?!?

----------------------------------------------------------------------
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!
Received on Fri Mar 30 2001 - 17:04:23 PST

This archive was generated by hypermail 2.2.0 : Thu Nov 20 2008 - 03:04:18 PST