[M3devel] example of bug in NetObj Stub Generator
Mika Nystrom
mika at async.async.caltech.edu
Sat Apr 17 20:35:54 CEST 2010
Hi Randy,
The issue is that RECORDs are marshalled "manually" by the stub code,
rather than being passed as a Pickle. Therefore, imports are needed
for record fields.
The change that is needed is the following:
Line 291 of CodeForType.m3, currently
IF byName AND t.name # NIL THEN
change to
IF NOT ISTYPE(t,Type.Record) AND byName AND t.name # NIL THEN
I would commit this myself but I have lost track of my non-anon CM3 checkout.
Can someone do the honors, please?
Mika
P.S. It is possible the fix is a bit pessimistic, not sure the literal
type name is required for every type of record field. Worst-case
breakage: stub code generates a warning when compiled.
More information about the M3devel
mailing list