Re: language-bindings gnome org
- From: Andrei Zmievski <andrei ispi net>
- To: James Henstridge <james daa com au>
- Cc: language-bindings gnome org
- Subject: Re: language-bindings gnome org
- Date: Tue, 24 Apr 2001 11:59:12 -0500
On Wed, 25 Apr 2001, James Henstridge wrote:
> On the second topic, there are a few extensions to the defs format I have
> been using in my python bindings. Both are extra tags that can be given
> for parameters to functions/methods:
> (default "default-value")
> - provides a default value for argument, if it is ommited when calling
> the function. If a parameter has a default value, then all
> subsequent parameters must also.
> (null-ok)
> - indicates that it is okay to pass a NULL for this parameter. In the
> python bindings, you can pass None for parameters that have null-ok
> set. If null-ok isn't set, then the user must pass an object of the
> type indicated for the parameter.
>
> What do people think of these?
I found these very useful in my PHP-GTK bindings. I'd vote to make them
part of the standard.
-Andrei
"Everything is a matter of a little programming" -- Rasmus Lerdorf
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]