[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: change ni * protos
On Sat, 22 Jan 2000 21:38:49 GMT, Tim Bunce wrote:
>On Fri, Jan 21, 2000 at 05:01:07PM -0800, Gurusamy Sarathy wrote:
>> The long and the short of it is that the current semantics make it
>> possible to override builtins like open() and require(), which need to
>> see simple scalar values as they were passed, not as typeglobs. When
>> you see the "*" prototype, think "any scalar including bareword" rather
>> than "typeglob".
>
>How about allowing
>
> sub fn(\*);
>
>to force a ref to a typeglob for those that want it?
>
>Seems reasonably consistent with the other backwacked prototypes.
Sounds like an idea.
The \* prototype currently only allows a literal *foo argument,
converting it into a reference as for the other types, but it should
be a simple matter to allow barewords there too.
Sarathy
gsar@ActiveState.com
- References to:
-
Tim Bunce <Tim.Bunce@ig.co.uk>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]