[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: [ID 20000125.002] Problem in documentation of Fcntl constants
>Avoiding the encapsulation vs. expose-the-ductwork debate, the point still
>remains that that the :flock constants are prototyped as sub LOCK_SH {...}
>not sub LOCK_SH() { ... }:
> *$AUTOLOAD = sub { $val };
>causing a working C idiom LOCK_SH + LOCK_NB to fail in Perl.
Oh, I see. Yes, the whole default context coercion prototypes were
introduced to address this very sort of issue. I didn't realize
that they hadn't been fixed up.
--tom
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]