[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r17771 - branches/bdb-fixes/tools/dev

From: Branko Čibej <brane_at_xbc.nu>
Date: 2005-12-23 01:57:23 CET

David James wrote:
> On 12/13/05, brane@tigris.org <brane@tigris.org> wrote:
>
>> * tools/dev/stress.pl: "Use strict", add prototypes and prefix all die
>> messages with "stress.pl" to make them stand out from Subversion
>> errors.
>>
>
> Why add prototypes?
Because "use strict" requires them.

> In C, function prototypes enable compile-time type
> checking of function arguments, and are generally a good thing. Perl
> prototypes aren't designed to do that. Instead, the "$" prototype adds
> an implicit typecast in front of function arguments, converting arrays
> and hashes into scalar arguments. For example, the "$" prototype
> converts an array of letters ("a",b","c","d") into a count of the
> number of elements (e.g. "4"). Is this really what you want to do?
>
Yes. Why not?

-- Brane

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Dec 25 01:47:45 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.