Implicit initialization is EXCELLENT
ian.g.kelly at gmail.com
Thu Jul 7 11:58:47 EDT 2011
On Thu, Jul 7, 2011 at 1:12 AM, Ulrich Eckhardt
<ulrich.eckhardt at dominolaser.com> wrote:
>>> Just guessing, is it legacy, C-with-classes code rather than C++ code
>>> perhaps? Haven't looked at wx for a while. Such code typically lacks
>>> understanding of exceptions, which are the only way to signal failure
>>> from e.g. constructors.
>> No, wx is C++ through and through.
> No namespaces. No templates but macros. No exceptions. No C++.
> Sorry, I beg to differ. BTW, they say themselves that they tolerate but not
> use exceptions, so they actually need two-stage construction if construction
> can fail, and for exactly the guessed legacy reasons.
Ah, I think I misunderstood your meaning. By "C-with-classes" I
thought you were referring to the practice of OOP in C, and my
response was to the effect that building wx requires a C++ compiler,
not just a C compiler.
More information about the Python-list