Re: Writing Methods

GWRepNate@aol.com
Sun, 1 Sep 1996 12:27:31 -0400

Here is how I would set up a GenValue:

@object GenValueClass MyValue = {
GVLI_destination = process;
...
}

Here's how I would intercept the status message:

@class MyProcessClass, GenProcessClass;
@message (GEN_VALUE_STATUS_MSG)MSG_MY_PROCESS_VALUE_STATUS;
@endc;

@method MyProcessClass, MSG_MY_PROCESS_VALUE_STATUS {
/* You'll have "value" and "stateFlags" as parameters. */
}

I have never seen the "process classes cannot have relocation methods" error
before. The reason the process class can't have relocation methods is that it
has no instance data to relocate.

As for the Tutorial, yes it is in some need of an update. Swat should not
normally want to abort anything. If it happens just type y and exit Swat.
Start over and it shouldn't happen again. If it does, please send detailed
information to this list.

Nathan