On Wed, 14 Jul 2004 11:05:45 -0600, Wiggins d Anconia wrote
> > We can all breath a sigh of relief now that I believe I've identified
> this as
> > my bug. I would say the true root cause is that Perl doesn't support
> > prototyping properly and named parameters at all though...
> >
>
> properly, huh? and huh?
>
> http://danconia.org
It would be nice to have a discussion on prototypes - from what I understand
they are not really enforced and I have even seen some suggestions on how to
change them.
As far as named parameters, I mean like most languages, something like:
sub whatever( param1, param2 )
{
if ( param1 )
I get around this by calling whatever like
whatever( -param1 => value, -param2 => value )
then
sub whatever
{
my %{params} = normalizeParams( @{_} )
but this is obviously broken as the params aren't validated, resulting in my
original defect.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>