On Feb 23, 2006, at 6:43 PM, Achim Grolms wrote:

On Friday 24 February 2006 01:06, Graham Barr wrote:

GSSAPI::Name->import( $target,
                      principal,
                      gss_nt_service_name )

Calling import directly does not seem a good thing to do to me. Can
someone explain why we are doing that ?

That's the constructor, creating a new GSSAPI::Name object
and storing it into $target.

that follows the behaviour of the C-Library that returns
most of it's values through manipulating it's input
parameters.

Its unfortunate that it was decided to follow the C API names so closely. A sub called import has a purpose in perl, namely for importing into the current namespace. And perl will call it for use. IMO this warrants a comment to other reading this code knows what it does instead of what they think it might do.

Graham.

Reply via email to