In case anyone's forgot, this is trivial in Cython, see Code.py/GlobalState.

Dag Sverre Seljebotn
-----Original Message-----
From: Greg Ewing <[email protected]>
Date: Friday, Sep 11, 2009 4:06 am
Subject: Re: [Cython] filetable_cname vs filenames_cname
To: [email protected]: [email protected]

Robert Bradshaw wrote:
> My question was why do we have two identifiers that  
> essentially point to the same thing, with a function that does  
> nothing but initialize one to the other in the initmodule.
>
>The reason for the function is that Pyrex had to
>be able to generate code referring to the table
>before the code that initializes the table, and
>Windows appears to be incapable of handling
>static initialization of pointers in a DLL.
>
>If Cython can arrange for the table init code
>to be emitted before the code that references
>the table, the function and the dual naming
>could probably be eliminated.
>
>-- 
>Greg
>
>_______________________________________________
>Cython-dev mailing list
>[email protected]
>http://codespeak.net/mailman/listinfo/cython-dev
>

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to