[Cython] Syntax to declare a c++ class?
Stefan Behnel
stefan_ml at behnel.de
Thu May 7 10:10:34 CEST 2009
Robert Bradshaw wrote:
> On May 7, 2009, at 12:42 AM, Stefan Behnel wrote:
>
>> Robert Bradshaw wrote:
>>> On May 6, 2009, at 11:05 PM, Stefan Behnel wrote:
>>>> cdef[c++] extern ...
>>>
>>> Parameterized keywords? Sorry, but that hurts my eyes... :(
>>
>> Ok, not on keywords then. What about
>>
>> cdef extern[c++] ...
>
> "extern" feels a lot like a keyword too.
Fine, but you get the idea, right? In a way, the declarations *are*
parametrised in that they come from different languages. I think it makes
sense to add that to the "extern" 'keyword' to say: "this external
declaration obeys C++ semantics".
Stefan
More information about the Cython-dev
mailing list