Re: language-bindings gnome org



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]