On 12/17/2010 04:56 PM, Hugo Parente Lima wrote:
> On Friday 17 December 2010 17:35:28 John Cummings wrote:
>
>> My apologies for the long email. Just to not bore everyone, I'll send
>> two messages. The first one quickly summarizing my observations and
>> questions. In the next one, I'll reply to myself with the details.
>>
>> I am able to use a class inside a namespace if I use this general
>> pattern in the header file:
>>
>> namespace bar {
>> class foo;
>> }
>> class bar::foo {
>> ...
>> };
>>
>> However, I cannot get things to work using this pattern:
>>
>> namespace bar {
>> class foo {
>> ...
>> };
>> }
>>
> Yes you can.
>
>
>> Has anyone else seen this behavior? Is there another way to have a bind
>> a class that is inside a C++ namespace?
>>
>> Yes, I read the namespace type in the typesystem documentation:
>>
>> http://www.pyside.org/docs/apiextractor/typesystem_specifying_types.html#na
>> mespace-type
>>
>> That document seems to indicate that you cannot have classes in a
>> namespace. To quote: "Note that within namespaces, the generator only
>> supports enums (i.e., no functions or classes)." So, I understand that
>> the answer may be that it is impossible right now. I am just perplexed
>> why it works one way and not the other.
>>
> The documentation is out dated, we support classes and enums inside
> namespaces, without this support bindings for phonon and QtMobility would be
> impossible.
>
>
Is there a newer copy of the documentation that I should be using
instead? The typesystem_specifying_types.rst file in the apiextractor
tarball reads the same way.
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside