On 2004-12-29, at 12:44:11 -0500, Stas Bekman wrote:
Marcus Holland-Moritz wrote:
On 2004-12-29, at 14:45:44 +0100, Marcus Holland-Moritz wrote:
> I'll mention it in perlhack. Let me know if you have any suggestions.
How about adding it at the top of perlapi.pod (or at least a pointer to perlhack where the full details are given).
Thinking about it, I guess something like perlxstut is a more appropriate place than perlhack. I wanted to add a section on Devel::PPPort to perlxstut anyway.
I think perlguts is more appropriate, since not everybody uses XS (e.g. embed perl)
This will be part of the next release.
You can try Devel::PPPort 3.04 from CPAN or blead.
Works great. Thanks Marcus.
But why does it say:
May not be supported below perl-5.7.3.
Why not a definite:
It is not supported below perl-5.7.3
?
Because of the way the data is gathered. All the portability information in ppport.h is automatically generated by a set of scripts in a quite lengthy process (see HACKERS in D::P for details). The data isn't neccessarily reliable (yet) or complete. When it says "May not be supported" this just means that the compiler had some sort of trouble compiling the test code, for whatever reason. It could be because the interface changed, which doesn't mean that it's unsupported.
So why giving information that it's not certain. IMHO, it's better to give none at all. If you tell May not be supported, I still need to go and check those perls below 5.7.3. Of course the good thing that I know for sure that it's supported by perl 5.7.3+
And the last question, why not installing ppport.h into the perl tree? I know Devel::PPPort generates one, but why bother typing commands, when one could just copy it from the tree?
Do you think it's much easier to copy the file than writing
perl -MDevel::PPPort -eDevel::PPPort::WriteFile
?
I do, because one needs to figure out what to type. It's easy for you since its your project so you remember it by heart. For me, I need to perldoc it first. For me it's easier to:
find /usr/lib/perl5 | grep ppport.h
and copy just that.
In any case TIMTOWTDI :)
And you'll usually have ppport.h lying around in your XS code anyway?
but not the latest one.
-- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
