Patrick K. O'Brien wrote:
"Mike C. Fletcher" <mcfletch@rogers.com> writes:
...
...
Ack! Guys. Please, restrain yourselves. Tackle one issue at a
time. Moving the Ptr classes from the namespace will make the
transition require yet one more step, and that much more testing, but
won't actually eliminate the wart. The Ptr classes are used all
through code that needs to check for resource/window-type to decide
what to do with the window. If you move them, we have to alter all
code that uses them. They may be implementation details, but they're
core details at the moment.
<soapbox>First, I am exhibiting a lot of restraint. Nothing has been
changed yet, and all proposed changes are getting a fair hearing on
this list. Second, I'm implementing code so that all proposed changes
can get tested before any final decisions are made. Third, none of
what I am doing is "arbitrary" and I'm starting to hate that
word.</soabox>
Sorry to have offended. I'm one of those people who see "namespace pollution" as a non-issue, so for me breaking code to support minimising it is far more arbitrary seeming (last time I'll use the word in this message, promise) than it would be for someone who sees it as a real problem.
As I've stated, I'm +0 on the whole issue because the original idea will require (hopefully) less than a month for converting, testing and re-deploying all of my code. I get nervous when the conversion costs creep upward, and I obviously should have stated my concerns with a little more tact. My appologies.
Now that *I* feel better...
Your concerns are why I'm cautious about moving Ptr classes out of the
main namespace. At the same time, I have to believe you are in the
minority of users who fiddle with this sort of thing, because you are
building low-level tools, like the PythonCard and wxGlade folks.
I'm willing to admit the possibility that I'm in the minority here. I'm so used to the Ptr classes being needed for membership-checks that I've probably long-since lost all contact with the world of new users.
Unless you're fixing the whole issue (i.e. eliminating the Ptr classes
entirely so that pointers passed back from SWIG are full instances of
the named class) please don't arbitrarily start partitioning the
namespace so that we have to alter the code twice (once now, to use
the 'ptr' space, once when the wart is actually fixed (to use the same
class for all instances)).
If we want to reduce the size of the wx namespace then the 250+ Ptr
Ah there's the rub. While lots of people care about it, apparently. I don't really see the size of the namespace as any sort of problem worth thinking about, so changing things to solve the problem aren't high on my list of priorities. Oh well, sucks to be me .
classes, that most wxPython users don't even know exist, are a prime
target. Raising the issue is valid and there's nothing arbitrary about
it. But whether it is a wise thing to do or not will need to be
decided based on feedback from power users such as yourself. That's
all I'm trying to do at this point.
Sorry to have caused you any angst. Was intending no disrespect.
Same to you. Thanks for letting me vent. (Like you had a choice.
Oh, like most people, I can reach the del key pretty easily . You're doing work that will benefit the community, you deserve the chance to rant.
Peace, and have fun all,
Mike
···
_______________________________________
Mike C. Fletcher
Designer, VR Plumber, Coder
http://members.rogers.com/mcfletch/