On 7/5/06, Matthias Baas <ba...@ir...> wrote:
> ok, I could add a loop at the end of my script that iterates over all
> declarations and checks if readme() returns anything else than an empty
> list and then report those messages.... which is not really ideal.
I agree with you!
> > The problem is that, I still looking for a good way to give this
> > information to the user.
I just posted the idea, how to solve this problem in another thread :-)
>1) it will teach new users how Boost.Python and
> pyplusplus work and what they do about particular C++ constructs
This is one of the goals of py++ and this is why it has small and simple GUI!
New comers to boost can use it as a guide to boost.python library.
> and 2)
> a user can look up why something didn't turn out to be as he had expected.
I learned, that "surprise" is the last thing that users want, when they use code
generator, so writing the information into source file is a good idea.
> Whenever the result of running pyplusplus is not as expected, the user
> has questions about it. In my case, the question was "Why didn't
> addEventCallback() show up in the generated code?". Now we have to find
> a way how questions like this can be answered quickly by pyplusplus
> itself. There are certainly more types of questions a user can have, but
> I think most of them will all have in common that they refer to one
> particular (or a group of) declarations that are usually given by name.
> So given the name of a declaration it should be possible to quickly
> determine all "interesting" things that pyplusplus has to say about that
> declaration. One straightforward possibility would be using 'grep' on a
> log file that contains the full declaration string and a corresponding
> message. Each such message should be entirely contained within one line
> (otherwise it would be awkward to use grep) and there might be more such
> lines in the log file. This is already how I can filter out the
> decorations that have been applied to a particular declaration by using
> the log file that's generated in the experimental version. And so far,
> this method has proven to be useful for me.
Do you mind to review and correct py++ messages?
Thanks
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
|