Wrapping Python - A function wrapping template
Kirk McDonald
kirklin.mcdonald at gmail.com
Tue Jun 13 13:32:28 PDT 2006
Daniel Keep wrote:
> Kirk McDonald wrote:
>>This library, as it exists now, is more a proof-of-concept than a useful
>>library, so I'm not quite prepared to release it yet.
>>
>
>
> You stole my idea :P
>
> Seriously, congratulations. I know I didn't quite get that far. This
> is fantastic stuff; it won't be long now before we have our own version
> of Boost::Python :)
>
> Just a few questions:
>
> * How did you deal with the whole 8-bit with encodings <==> UTF-8 thing?
> I was seriously considering just forcing everything to go via UTF-16,
> or did you write code to do the transcoding manually?
>
I haven't. :-) That remains to be done. It just does ASCII at the moment.
> * Do you have any plans on how to wrap the method definition array? I
> tried using nested templates but D didn't like it :(
My current instinct is to hide the array in the library, and add a "def"
function (a la Boost::Python) that knows how to add entries to it.
Haven't tried this yet, of course.
>
> In any case, fantastic work.
Thanks!
-Kirk McDonald
More information about the Digitalmars-d
mailing list