Re: Checking prototype with objects

2004-02-16 Thread R. Joseph Newton
Rob Dixon wrote: > R. Joseph Newton wrote: > > > > l Maldonado Torres wrote: > > > > > > > > I am trying to use prototype functions with object but this seems not > > > to work, I mean perl does not check for the type of arguments. > > > > > > I usually do this. > > > > > > sub array_print(\@); >

Re: Checking prototype with objects

2004-02-16 Thread Rob Dixon
R. Joseph Newton wrote: > > l Maldonado Torres wrote: > > > > > I am trying to use prototype functions with object but this seems not > > to work, I mean perl does not check for the type of arguments. > > > > I usually do this. > > > > sub array_print(\@); > > ...sub array_print(\@) > > ... > > Y

Re: Checking prototype with objects

2004-02-16 Thread Randal L. Schwartz
> "Hazael" == Hazael Maldonado Torres <[EMAIL PROTECTED]> writes: Hazael> I am trying to use prototype functions with object but this seems not Hazael> to work, I mean perl does not check for the type of arguments. Exactly. Prototypes are meant for one thing only: to have a Perl function emu

Re: Checking prototype with objects

2004-02-16 Thread R. Joseph Newton
Hazael Maldonado Torres wrote: > -- > Hi there. > > I am trying to use prototype functions with object but this seems not > to work, I mean perl does not check for the type of arguments. > > I usually do this. > > sub array_print(\@); > ...sub array_print(\@) > ... Your immediate problem here i

Re: Checking prototype with objects

2004-02-16 Thread Rob Dixon
Hazael Maldonado Torres wrote: > > > I am trying to use prototype functions with object but this seems not > to work, I mean perl does not check for the type of arguments. > > I usually do this. > > sub array_print(\@); > > .. > ... > > sub array_print(\@) >{ ># my code >} > > > Then wh