apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Max Bowsher <ma...@ukf.net>
Subject Re: [PATCH] get string showing supported dbm types in typical usage-syntax manner
Date Fri, 31 Mar 2006 21:41:33 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jeff Trawick wrote:
> On 3/31/06, William A. Rowe, Jr. <wrowe@rowe-clan.net> wrote:
>> I was about to say 'wrong list?' - but yes.  Can we add a second arg to let
>> the user pick "|", ", " or some other list delim?
> 
> sure
> 
>>                                                            Is there something we
can
>> do to indicate which one -is- the default?
> 
> There could be a user-specified notation to append ("*", " (same as
> default)", or even ""), but that may be too funky.  Alternative:
> Return two strings instead of one to keep the interface simpler.
> 
> string1 has a list of valid type strings (including "default"), using
> specified delimiter.
> string2 specifies the name of the default.

Better still, rather than taking a delimiter, return an array of
strings, so that the client application can do whatever it wants with
them - hypothetically, a GUI app might want to use them to populate a
dropdown list.

Max.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)

iD8DBQFELaINfFNSmcDyxYARAr4gAKCHyVcEkQkXUZwo5IYjG5AkwS8R4wCgwTdM
83w3HB185A9tOpTP0HlmENg=
=vZON
-----END PGP SIGNATURE-----

Mime
View raw message