Dagfinn Ilmari Mannsaker wrote: > if (!SvOK(sv)) /* let undefs pass */ > return sv; > if (!SvROK(sv)) > Perl_croak(aTHX_ "Can't unweaken a nonreference"); This combination of semantics is rather arbitrary. I'd prefer that the API function have a consistent treatment of things other than weak references: either croak on all, or return all unchanged. Whatever the semantics, especially if they remain inconsistent, they must be documented. -zeframThread Previous | Thread Next