homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lemburg
Recipients belopolsky, lemburg
Date 2009年01月06日.10:42:08
SpamBayes Score 0.12773658
Marked as misclassified No
Message-id <4963357E.1040900@egenix.com>
In-reply-to <d38f5330901051305n317e8a7ate5ce38312cecf153@mail.gmail.com>
Content
On 2009年01月05日 22:06, Alexander Belopolsky wrote:
> Alexander Belopolsky <belopolsky@users.sourceforge.net> added the comment:
>> Given that you can build Python as library on Unix and as DLL on
>> Windows, there doesn't appear to be any need to actually be able
>> to build Python itself using a C++ compiler. Simply using the
>> header files and linking against those libraries should do the
>> trick in most cases.
> 
> So what is your position on the proposed patch? Is it worthwhile to
> track down the remaining symbols that may be affected by removal of
> extern "C" from .c files? What is your opinion on the original patch
> (c++-patch.diff) which restores C++ compilability but does not touch
> these declarations?
> 
> I think using C++ as a lint variant from time to time is a good
> exercise to catch some corner issues as I hope this patch
> demonstrates. I don't think this should be a requirement on every
> submission, but once an effort is made to restore C++ compilability,
> such changes should be applied unless there are valid concerns against
> them.
I agree with using C++ compatibility as additional means of checking
for correctness of the code. The type casts you have added in the
patch should definitely make it into the trunk.
Making sure that all exported private symbols get a _Py prefix and
a declaration in the header files that adds a comment explaining their
private nature is also a good idea.
I'm not sure about removing the extern "C" declarations altogether.
We'd need further testing with non-G++ compilers to see whether we
still need them or not. With the above fixes, I doubt that we still
need them nowadays.
History
Date User Action Args
2009年01月06日 10:42:10lemburgsetrecipients: + lemburg, belopolsky
2009年01月06日 10:42:09lemburglinkissue4805 messages
2009年01月06日 10:42:08lemburgcreate

AltStyle によって変換されたページ (->オリジナル) /