OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Re: DOCBOOK: 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:
> > / sanger@math.muni.cz (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]'

Daniel

[*] don't worry I should not loose my ability to maintain my C code :-)

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC