Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] python wrapper broken on OSX

Date2006-03-22 17:09
From"Michael Gogins"
SubjectRe: [Cs-dev] python wrapper broken on OSX
Perhaps we should try int, char** only and if that isn't satisfactory, 
revert to your earlier solution. The comments in CVS were not helpful in 
understanding why you commented them out. I would not have uncommented them 
if I had known.

CsoundVST uses a completely different system were options are always passed 
as one string, and parsed out in C++.

Regards,
Mike

----- Original Message ----- 
From: "Istvan Varga" 
To: 
Sent: Wednesday, March 22, 2006 6:12 AM
Subject: Re: [Cs-dev] python wrapper broken on OSX


> On Wednesday 22 March 2006 03:37, Michael Gogins wrote:
>
>> I've restored these typemaps, which were commented out in Python,
>> and only half implemented in Java.
>
> Note that - at least with the version of SWIG I have, so more testing may 
> be
> needed - for some reason the typemaps break the use of the CsoundArgVList 
> class,
> and at the same time they do not work with the overloaded 
> Csound::Compile()
> method. As a result, it is not possible to use Csound::Compile() with 
> anything
> other than the fixed 1, 2, 3, 4, or 5 command line arguments.
> So, if the same problems also occur for other people, the possible 
> solutions
> include:
>  * removing all overloaded methods, keeping only one that takes int argc,
>    char **argv; as the methods are virtual, they probably need to be 
> removed
>    for all languages, not just Python, to keep the vtable consistent.
>    However, it is possible that excluding them from Python wrapping may
>    also work, and then doing so would be preferred. CsoundArgVList should
>    also be excluded from Python since it is made unusable by the typemap.
>  * commenting out the typemap again
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting 
> language
> that extends applications into web and mobile media. Attend the live 
> webcast
> and join the prime developer group breaking into this new coding 
> territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-03-23 09:54
FromIstvan Varga
SubjectRe: [Cs-dev] python wrapper broken on OSX
AttachmentsNone