[omniORB] User's Guide semantics ...

Richard Hardgrave hardgrav@ttd.teradyne.com
Thu, 17 May 2001 11:01:52 -0500 (CDT)


In the omniORB Version 3.0 User's Guide, the description
of _narrow() is more than a bit confusing.  Section 2.5
states, "If the actual (runtime) type of the argument
object reference can be widened to Echo_ptr, _narrow()
will return a valid object reference."
In section 2.7, in the hello() function, _narrow() is
used, and the description is, "The object reference (obj)
is narrowed to Echo_ptr."

  Echo_var e = Echo::_narrow(obj);

What, exactly, does this mean?  At compile-time the object
reference is "narrowed" to Echo_ptr only if, at runtime,
the object reference can be "widened" to Echo_ptr???  Or,
is there some implication that putting the ptr under the
care of an Echo_var is doing the "narrowing"?

Regards,

Richard Hardgrave