[C++-sig] Re: test/embedding.cpp in bpl 1.31

David Abrahams dave at boost-consulting.com
Thu Aug 12 16:07:22 CEST 2004


Stefan Seefeld <sseefeld at art.ca> writes:

>> -----Original Message-----
>> From: David Abrahams [mailto:dave at boost-consulting.com]
>> Sent: August 12, 2004 08:09
>
>> > PythonDerived is a type object extracted from
>> > a python script, so the first line calls the
>> > constructor. The second takes the instance and
>> > extracts a 'Base' reference for later use.
>> > But what's the '()' operator supposed to do in
>> > that line ? 
>> 
>> It's a workaround for broken compilers.
>
> ok. May I suggest to add a little comment to avoid
> confusing the reader

OK.

> (and to remember developers to remove the workaround once support
> for those broken compilers has ended).

When BPL ends support for vc6/7 we will have a complete rewrite with
many new interfaces.  Or did you mean "...and to remind users..."

>
> [problems with PyRun_File...]
>
>> I don't have a comment about that part yet, and no time to make the
>> evaluation.  That said, if you could package up a bjam-able example I
>> might find time to try it.  All I'd do is look at it with the
>> debugger, though, and I guess you can do that just as well as I can.
>
> yep, and I did. As someone else confirmed, the problem was that the
> python runtime library had been compiled with vc 7.0, while I'm
> working with 7.1.  It appears the FILE structure layout changed, so
> those two versions aren't binary compatible. I'm now recompiling
> python with vc 7.1...

That's right.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com




More information about the Cplusplus-sig mailing list