
26 Feb
2007
26 Feb
'07
4:17 p.m.
Timmo Stange wrote:
Let me try to explain it from a different angle: What good does this copyable signal handle do?
Same as all C++ handles; prevent dangling references. C++ handles are the equivalent of Java references. Value semantics are better when they're possible, but if the alternative is noncopyability and raw pointers, I always prefer the handle approach. Not all C++ programmers agree. A construct on which Java is built upon must be evil. :-) That said, in this case I think that the hybrid approach is better than the two other alternatives.