On Wed 13 Feb 2002 18:35, Jonathan Leffler <[EMAIL PROTECTED]> wrote: > On Wed, 13 Feb 2002, H.Merijn Brand wrote: > > >On Wed 13 Feb 2002 02:02, Jonathan Leffler <[EMAIL PROTECTED]> wrote: > >> -Note that most people are still using Kernighan & Ritchie syntax here. > >> -I personally don't like this and especially in this documentation it > >> -cannot be of harm, so let's use ANSI. Finally Tim Bunce has announced > >> -interest in moving the DBI sources to ANSI as well. > >> +Since Perl 5.6 requires support for function prototypes (ANSI or ISO or > >> +Standard C), you should write your code using function prototypes too. > > > >Perl requires ANSI-C (as of ***long*** before 5.6) > > You're right; Perl 5.005 requires ANSI C. I checked in the 5.005_03 > source and the INSTALL file discusses the need for an ANSI C compiler. > I checked the 5.004_04 INSTALL file and it makes no mention of needing > an ANSI C compiler, and I checked the source file sv.c and it does not > use prototypes. > > >ANSI-C supports prototypes > >We DBD authors /should/ use prototypes > > > >I couldn't be more straight. > > So, apart from noting that DBI 1.21 no longer supports Perl 5.004, and > changing the reference from 5.6 to 5.005, do you want me to add italics > to I<should>? Or drop the prevarication about ANSI vs ISO C? Or is it > basically OK as it stands?
Choose your own wording, but what I mean is: Since Perl 5.6 requires ANSI C (supporting function prototypes), you I<should> write your code using function prototypes too. -- H.Merijn Brand Amsterdam Perl Mongers (http://amsterdam.pm.org/) using perl-5.6.1, 5.7.1 & 630 on HP-UX 10.20 & 11.00, AIX 4.2, AIX 4.3, WinNT 4, Win2K pro & WinCE 2.11 often with Tk800.022 &/| DBD-Unify ftp://ftp.funet.fi/pub/languages/perl/CPAN/authors/id/H/HM/HMBRAND/
