[Date Prev][Date Next][Thread Prev][Thread Next][Author Index][Date Index][Thread Index]

Translator bug.



I noticed the following fragment in translated output:

CLASS (UnionRecruiter,Accumulator) {
PUBLIC:
	...
/* Instance variables (defined in Smalltalk class) */
protected:
COPY(UnionRecruiter):
	CHKPTR(MuSet) muSet;
};

(This is only a representative sample.)

Note that, because of the colon used in its invocation, the COPY macro
always terminates with a protection-class setting keyword, such as
"protected" or "private".  Therefore the

	protected:

should appear after, not before:

	COPY(UnionRecruiter):

if it is not to be overridden by the hidden protection-class declaration
in the COPY() macro.

The version of the COPY() definition that is expanded when both garbage
collection and remote procedure calls are used happens to use "protected",
but two other definitions using "private" are waiting for either of the
flags to disappear.

	michael