C++/Python interfacing

Description

This page is an official Py++ "TODO" page.

For small features, the description of the feature and it's implementation will be written here. Big features will get their own page.

Unnamed classes

There is no technical reason why unnamed classes/structs/unions are not exported

by Py++:

class Foo{
    union {
        struct {
            float r,g,b,a;
        };
        float val[4];
    };
};

Implementation details

As it seems to me, the only code that should be changed is "pyplusplus/module_creator/creator.py" file. To be more specific: all code creators, for declarations in unnamed classes, should be created under named class.

The coding itself should take something like 4 - 5 hours, including unit test.

Domain Specific Language ( DSL ) challenge

More or less formal definition of DSL could be found here.

Py++ has been created to solve single and well-defined problem: to create Python bindings for C++ projects. The good news - Py++ achieved the goal, the bad news - users are forced to read the documentation. DSL cannot completely solve the problem, but it can eliminate the need to read documentation in 80% of the cases.

Please read DSL challenge document and contribute your ideas, thoughts or just comments.



Valid HTML 4.01 Transitional Valid CSS! SourceForge.net Logo