lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


And when I use "Dub" to create Python bindings, I write it in Python ? ;-)

By the way, coming from many years of intensive Ruby, I am surprised
at how so much I like having *free* functions (first-class objects).
Not being forced into the class/object paradigm is a nice change.

Cheers,

G.

On Thu, Dec 16, 2010 at 10:13 PM, Michal Kottman <k0mpjut0r@gmail.com> wrote:
> On Thu, 2010-12-16 at 22:03 +0100, Gaspard Bucher wrote:
>> Another advantage of using Doxygen is that
>>
>> 1. you get free html documentation for your Bindings (since bindings
>> mimic C++ very closely)
>> 2. In the latest version, you can use custom tags such as @dub to
>> change parameters used during binding:
>>
>>   /** Some class.
>>    *
>>    * @dub string_format:'%%f'
>>    *      string_args:'(*userdata)->interval()'
>>    *      lib_name:'special_core'
>>    */
>>
>> The second point is nice because it means that class maintenance (with
>> bindings) is reduced to the header file alone.
>
> Now to rewrite Dub to Lua in order to get rid of that Ruby dependence :)
>
>
>