> On Wed, 14 Jul 2004 13:26:36 -0400, Bob Showalter wrote > > > > I second the "huh?" > > > > How did prototyping relate to the trouble with $^T? > > > > How do you define "support prototyping properly?" > > Basically because of my implementation of named parameters. I was passing > -value instead of -seed and the sub was expecting -seed. If I had been using > named parameters instead of hash keys this would not have been possible. >
Yikes, funny I see this as a feature. You were still passing the wrong value, your sub should validate the parameters itself, presuming thorough code, it would still have caused an error. > By prototyping I really mean named and typed parameters and a typed return > value (like C). Typed return value, yikes, you have just cut out half of the value of using a 4GL... Back to C with you! ;-) Let's see if we can get P5P to implement pointer arithmetic for references...uh.... > > I mistyped on my last post - I have seen suggestions that prototypes should > not even be used. Is there a difinitive answer on this? > > As Bob stated, I have never used them, though I don't consider myself a true guru. http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>