in reply to Re: vec and array parameters
in thread vec and array parameters

Are there any plans / thoughts to fixing this 'problem'? Is it even considered a problem or is it just an annoyance?

------
We are the carpenters and bricklayers of the Information Age.

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

Replies are listed 'Best First'.
Re: Re: Re: vec and array parameters
by duff (Parson) on Jan 07, 2004 at 17:56 UTC

    It's just a result of perl's context coercive prototypes. You may consider it an annoyance if you like. The fix is Perl 6 :-)

Re: vec and array parameters
by Abigail-II (Bishop) on Jan 07, 2004 at 23:13 UTC
    The only time this is mentioned as a problem is when people are discussing prototypes once a year. But then, people quickly agree that prototypes are a failed experiment, with only one or two somewhat useful cases, but it's too late to do it differently. I've never seen it be considered a real problem for primitives like vec. (More often than not, people will use the same third argument for vec, and use a constant).

    Abigail