T.R | Title | User | Personal Name | Date | Lines |
---|
560.1 | needs investigation | GOSTE::CALLANDER | | Mon Dec 17 1990 15:15 | 4 |
| could you give us the exact syntax that you used?
thanks
|
560.2 | Seems to work okay for us | TOOK::GUERTIN | E = mcc | Mon Dec 17 1990 16:09 | 18 |
| We have tested dispatching on strings and it seems to work okay for us.
MCC_DISPATCH_ENTRY -
SHOW,-
<MCC_ENTITY <MCC><myclasscodegoeshere,THESTRING>>,-
CHAR,-
myshowroutineforthestring
It would be helpful to know what exactly does not work so we can try
to duplicate the behavior (and add it to our regression tests).
Note that having strings as instances to dispatch on is not useful, so
no one talks about it much. You cannot really dispatch very easily on
just an ASCII string. Maybe you have a Latin1String for an instance
datatype? In any case, it is supported (until someone asks us to get
rid of it).
-Matt.
|
560.3 | Ex of what I tried | TENERE::MCDONALD | | Tue Dec 18 1990 04:22 | 12 |
| Here is what I tried:
mcc_dispatch_entry -
CREATE,-
<mcc_entity <CMEAGT, *>,<CMEAGT_TESTOBJ,CAROL>>,-
NULL,-
mcc_TESTOBJ__create_TESTOBJ
Yes the instance datatype is Latin1String.
I realize this is not usually so important, but I wanted to try
something where one instance of a class is dispatched to one
AM the other instances are dispatched to another AM (remote).
|
560.4 | Still confused | TENERE::MCDONALD | | Thu Dec 20 1990 10:45 | 20 |
| I still do not understand why this does not work for me, does the
instance need to be a certain datatype? I tried it with the YOURMM
example:
mcc_dispatch_entry -
SHOW,-
<mcc_entity <YOURMM,TESTSTRING>>,-
CHAR,-
mcc_yourmm__show_char
I got the result:
MCC> ENROLL MCC_YOURMM
%SYSTEM-F-ACCVIO, access violation, reason mask=00, virtual
address=00000019, PC
=00012119, PSL=03C00000
%SYSTEM-E-ACCVIO, access violation, reason mask=00, virtual
address=0000000A, PC
=0000000A, PSL=0000000F
|
560.5 | hum... | GOSTE::CALLANDER | | Thu Dec 20 1990 11:26 | 5 |
| I gave it a quick try, my didn't access violate but I couldn't
get the dispatcher to do the checking either.
Matt, I think some one should probably check into this a bit.
|
560.6 | | TOOK::SWIST | Jim Swist LKG2-2/T2 DTN 226-7102 | Thu Dec 20 1990 14:15 | 15 |
| Compile time dispatch by instance is broken since there is no way to
tell the macro what the datatype of the instance is - nor is there
any way to specify identifiers other than strings. It may be that
certain combinations work but don't bet on it.
There has been no incentive to fix this since compiletime specification
of per-instance dispatch is pretty useless. However, when we go
distributed, *run time* specification of per-instance dispatch (e.g
I want instance X of the bridge AM to service bridge Y) will be an
absolute necessity. We were going to clean up the compiletime case
when we implemented the runtime case.
This should probably be QARed against the SRM.
|