This is the mail archive of the
mailing list for the DocBook project.
Re: Re: Functions like php.net
On Mon, Dec 10, 2001 at 04:16:14PM +0000, Tim Waugh wrote:
> On Mon, Dec 10, 2001 at 09:31:22AM -0500, Norman Walsh wrote:
> > / email@example.com (Michal Sanger) was heard to say:
> > | In PHP semantic I have declaration:
> > | string MyFunction(string param1, string param2[, int number]);
> > There's a switch in the stylesheets to select between K&R style
> > and ANSI style function synopses. If you turn that switch to 'ansi', I
> > think you'll get something closer to what you want.
> As well as the K&R/ANSI formatting, there is the other issue of
> optional parameters like '[, int number]'. As far as I can tell there
> isn't any good way to mark that up currently.
Hum, I'm being converted to python ATM [*], and may I suggest that if you
add support for optional args, it would be a good idea to add defaulted
values support too then '[, int number = value]'
[*] don't worry I should not loose my ability to maintain my C code :-)
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
firstname.lastname@example.org | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/