[cable] int& return types
Brad King
brad.king at kitware.com
Wed Oct 31 15:18:30 EST 2001
Hello, all:
I have just checked in a change to the Tcl facility that allows methods
like this:
int& x()
to be called and let Tcl access the value of the resulting integer. The
implementation still allows the result to be passed directly to another
method like
void set(int&)
and have the reference value propagate correctly. However, the string
representation of the result will be the value of the integer so that Tcl
can deal with it nicely.
This behavior exists for all reference types that refer to cv-unqualified
fundamental types (float, char, etc).
-Brad
More information about the cable
mailing list