Re: subroutine call weirdness

2004-02-28 Thread R. Joseph Newton
"Michael C. Davis" wrote: > At 08:54 PM 2/27/04 -0800, R. Joseph Newton wrote: > >I think it might also be good to refer the OP back to James' post, which > he seems > >to have overlooked. The caveat you provided earlier still makes sense. > > Thanks for the ideas. Are you referring to James' su

Re: subroutine call weirdness

2004-02-27 Thread Michael C. Davis
At 08:54 PM 2/27/04 -0800, R. Joseph Newton wrote: >I think it might also be good to refer the OP back to James' post, which he seems >to have overlooked. The caveat you provided earlier still makes sense. Thanks for the ideas. Are you referring to James' suggestion about always using parens on

Re: subroutine call weirdness

2004-02-27 Thread R. Joseph Newton
Rob Dixon wrote: > Michael C. Davis wrote: > > > > At 01:31 AM 2/28/04 +1100, David le Blanc wrote: > > >Now remember, a perl 'prototype' is not a prototype in the regular > > >sense, > > >but a method to override perl's natural greedy argument list collection, > > >and a method to create function

Re: subroutine call weirdness

2004-02-27 Thread R. Joseph Newton
James Edward Gray II wrote: > On Feb 27, 2004, at 6:55 AM, Michael C. Davis wrote: > > > Hi list, > > > > I just ran across some unexpected results in passing arguments to > > user-defined subroutines. Could someone who has been around Perl a > > while > > longer check this and make sure I'm seei

Re: subroutine call weirdness

2004-02-27 Thread Rob Dixon
Michael C. Davis wrote: > > At 01:31 AM 2/28/04 +1100, David le Blanc wrote: > >Now remember, a perl 'prototype' is not a prototype in the regular > >sense, > >but a method to override perl's natural greedy argument list collection, > >and a method to create functions which emulate perl's builtins

RE: subroutine call weirdness

2004-02-27 Thread Michael C. Davis
At 01:31 AM 2/28/04 +1100, David le Blanc wrote: >Now remember, a perl 'prototype' is not a prototype in the regular >sense, >but a method to override perl's natural greedy argument list collection, >and a method to create functions which emulate perl's builtins (ie, >provide >hints to the expected

Re: subroutine call weirdness

2004-02-27 Thread Michael C. Davis
At 02:32 PM 2/27/04 -, Rob Dixon wrote: >I haven't looked at this at all carefully, but my first guess would be >be that you need to call the subroutine as if it was one: > > print MyProject::CoreConstants::EarliestValidTimestampAsNumber() + 1, "\n"; Yes, this certainly solves the problem I'm

Re: subroutine call weirdness

2004-02-27 Thread Rob Dixon
David Le Blanc wrote: > > > From: Michael C. Davis [mailto:[EMAIL PROTECTED] > > Sent: Friday, 27 February 2004 11:55 PM > > To: [EMAIL PROTECTED] > > Subject: subroutine call weirdness > > > > Hi list, > > > > I just ran across some unexpected results in passing arguments to > > user-defined subro

Re: subroutine call weirdness

2004-02-27 Thread Rob Dixon
Michael C. Davis wrote: > > I just ran across some unexpected results in passing arguments to > user-defined subroutines. Could someone who has been around Perl a while > longer check this and make sure I'm seeing this right? > > I've got some code that implements a constant as a subroutine call (

RE: subroutine call weirdness

2004-02-27 Thread David le Blanc
> From: Michael C. Davis [mailto:[EMAIL PROTECTED] > Sent: Friday, 27 February 2004 11:55 PM > To: [EMAIL PROTECTED] > Subject: subroutine call weirdness > > Hi list, > > I just ran across some unexpected results in passing arguments to > user-defined subroutines. Could someone who has been aro

Re: subroutine call weirdness

2004-02-27 Thread James Edward Gray II
On Feb 27, 2004, at 6:55 AM, Michael C. Davis wrote: Hi list, I just ran across some unexpected results in passing arguments to user-defined subroutines. Could someone who has been around Perl a while longer check this and make sure I'm seeing this right? I've got some code that implements a c