You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Doug MacEachern <do...@covalent.net> on 2002/01/30 08:30:16 UTC

Re: cvs commit: modperl-2.0/xs/maps apr_functions.map

On 30 Jan 2002 stas@apache.org wrote:

> stas        02/01/29 22:57:31
> 
>   Modified:    xs/maps  apr_functions.map
>   Log:
>   - package guessing was wrong, was using APR::function instead of
>   APR::Util::function. remove guessing.

no, the guessing is correct.  APR::strerror is right,
Apache::Util::strerror is not, etc.  please put them back, thanks.
sorry if i mislead somehow in recent emails, but i didn't mean to imply
this.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: cvs commit: modperl-2.0/xs/maps apr_functions.map

Posted by Stas Bekman <st...@stason.org>.
Doug MacEachern wrote:

> On Thu, 31 Jan 2002, Stas Bekman wrote:
> 
> 
>>But why, Doug? If APR has it wrong, why cannot we fix it Perl? We do 
>>adjust APIs to be Perlish, why cannot we set the function into a proper 
>>namespace?
>>
> 
> ok, now we're on a totally different subject.  my response to your commit
> was that the guessing was not wrong, those functions were meant to end up
> in the APR:: namespace.  if we want to make up a 'proper' namespace for
> the Perl functions, 'Util' isn't it.  put them back and we can discuss later.
> there are far more important things spend time on at the moment.

done.

_____________________________________________________________________
Stas Bekman             JAm_pH      --   Just Another mod_perl Hacker
http://stason.org/      mod_perl Guide   http://perl.apache.org/guide
mailto:stas@stason.org  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: cvs commit: modperl-2.0/xs/maps apr_functions.map

Posted by Doug MacEachern <do...@covalent.net>.
On Thu, 31 Jan 2002, Stas Bekman wrote:

> But why, Doug? If APR has it wrong, why cannot we fix it Perl? We do 
> adjust APIs to be Perlish, why cannot we set the function into a proper 
> namespace?

ok, now we're on a totally different subject.  my response to your commit
was that the guessing was not wrong, those functions were meant to end up
in the APR:: namespace.  if we want to make up a 'proper' namespace for
the Perl functions, 'Util' isn't it.  put them back and we can discuss later.
there are far more important things spend time on at the moment.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: cvs commit: modperl-2.0/xs/maps apr_functions.map

Posted by Stas Bekman <st...@stason.org>.
>>But what about other functions? password_validate, 
>>generate_random_bytes, etc...
>>
>>So it should be APR::password_validate?
>>
> 
> yes.  they should all be the way they were before.  those c functions
> don't have _util in their names, so the perl function shouldn't have
> ::Util in theirs.  Apache::Util is just the module name.  just like we
> have a bunch of Apache::Foo modules that add methods into the
> Apache::RequestRec namespace, without adding ::Foo to their names.

But why, Doug? If APR has it wrong, why cannot we fix it Perl? We do 
adjust APIs to be Perlish, why cannot we set the function into a proper 
namespace?

In the end the Perl APR API will be used by 99.9% of developers who will 
never know that APR::Util::password_validate actually is a function that 
doesn't have apr_util_ prefix but only apr_.

APR::errstr is actually cool with me, since it's a top level function.

but APR::password_validate or APR::generate_random_bytes seem completely 
bogus to me, after I've written some code using APR:: Perl APIs. I'm 
sure other people will feel in the same way. And will try to type 
APR::Util::password_validate just to realize that there is no such function.

_____________________________________________________________________
Stas Bekman             JAm_pH      --   Just Another mod_perl Hacker
http://stason.org/      mod_perl Guide   http://perl.apache.org/guide
mailto:stas@stason.org  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: cvs commit: modperl-2.0/xs/maps apr_functions.map

Posted by Doug MacEachern <do...@covalent.net>.
On Wed, 30 Jan 2002, Stas Bekman wrote:
 
> But what about other functions? password_validate, 
> generate_random_bytes, etc...
> 
> So it should be APR::password_validate?

yes.  they should all be the way they were before.  those c functions
don't have _util in their names, so the perl function shouldn't have
::Util in theirs.  Apache::Util is just the module name.  just like we
have a bunch of Apache::Foo modules that add methods into the
Apache::RequestRec namespace, without adding ::Foo to their names.



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: cvs commit: modperl-2.0/xs/maps apr_functions.map

Posted by Stas Bekman <st...@stason.org>.
Doug MacEachern wrote:

> On 30 Jan 2002 stas@apache.org wrote:
> 
> 
>>stas        02/01/29 22:57:31
>>
>>  Modified:    xs/maps  apr_functions.map
>>  Log:
>>  - package guessing was wrong, was using APR::function instead of
>>  APR::Util::function. remove guessing.
>>
> 
> no, the guessing is correct.  APR::strerror is right,
> Apache::Util::strerror is not, etc.  please put them back, thanks.
> sorry if i mislead somehow in recent emails, but i didn't mean to imply
> this.


But what about other functions? password_validate, 
generate_random_bytes, etc...

So it should be APR::password_validate?

Or did you mean this:

MODULE=APR
  apr_strerror              | MPXS_ | statcode

MODULE=APR::Util
  apr_password_validate
  apr_filename_of_pathname
  apr_password_get
-apr_snprintf
-apr_vformatter
-apr_vsnprintf
  apr_generate_random_bytes | MPXS_ | length

_____________________________________________________________________
Stas Bekman             JAm_pH      --   Just Another mod_perl Hacker
http://stason.org/      mod_perl Guide   http://perl.apache.org/guide
mailto:stas@stason.org  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org