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.

> Thank you
> John Cummings
> _______________________________________________
> PySide mailing list
> [email protected]
> http://lists.openbossa.org/listinfo/pyside

-- 
Hugo Parente Lima
INdT - Instituto Nokia de Tecnologia

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to