Pyd: Stackthreads and returning arrays from D

Lars Ivar Igesund larsivar at igesund.net
Tue Jun 26 04:45:32 PDT 2007


Simen Haugen wrote:

> Pyd doesn't work with stackthreads in newers versions of the dmd compiler
> (1.014+ at least). As I understand from the documentation and my testing,
> this means I cannot return arrays from D to Python (and renders Pyd quite
> useless for me).
> 
> "Pyd uses StackThreads for its iteration wrapping support. By setting this
> to False, opApply wrapping, Iter, and AltIter will be unavailable."
> 
> Has anyone found a simple workaround for this?

Whether it is a simple workaround or not, the stackthreads work fine with
later DMD's in the Fiber reincarnation in Tango.

-- 
Lars Ivar Igesund
blog at http://larsivi.net
DSource, #d.tango & #D: larsivi
Dancing the Tango



More information about the Digitalmars-d mailing list