Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'ah,': 0.09; 'compiler.': 0.09; 'exceptions,': 0.09; 'through.': 0.09; 'c++': 0.12; 'am,': 0.13; 'wrote:': 0.15; 'c++.': 0.16; 'compiler,': 0.16; 'eckhardt': 0.16; 'exceptions.': 0.16; 'fail,': 0.16; 'macros.': 0.16; 'looked': 0.16; '>>>': 0.16; "haven't": 0.21; 'header:In-Reply- To:1': 0.22; 'referring': 0.23; 'code': 0.24; 'effect': 0.28; 'thu,': 0.28; 'message-id:@mail.gmail.com': 0.28; 'sorry,': 0.29; 'btw,': 0.30; 'oop': 0.30; 'typically': 0.33; 'rather': 0.33; 'actually': 0.33; 'to:addr:python-list': 0.34; 'e.g.': 0.34; 'legacy': 0.35; 'skip:" 10': 0.36; 'response': 0.37; 'but': 0.37; 'received:google.com': 0.38; 'received:209.85.161': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.38; 'signal': 0.38; 'think': 0.38; 'to:addr:python.org': 0.39; 'received:209': 0.40; 'your': 0.60; 'construction': 0.62; 'failure': 0.73; 'beg': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=2j1763sXtOL0oSmX0HXZSB6iM2IIsV/PQvXEp1QKvIk=; b=qRbJosERVk8Jhbo98uXxFp9u//I2AcAWOnfviOLj6cFLOR5R0hjPYQWKQa0bU8poYK KnoACcyi5UgeIZqhlLcNbO0X0/tl/tazMmE3qNabc8jDnLCVB8cKmN9GBU8/HckHiSNH QKTLRzmHT0Ngpb3bnjqiz0Lijo4164DxaQEmA= MIME-Version: 1.0 In-Reply-To: References: <4e132d0f$0$29973$c3e8da3$5496439d@news.astraweb.com> From: Ian Kelly Date: Thu, 7 Jul 2011 09:58:47 -0600 Subject: Re: Implicit initialization is EXCELLENT To: Python Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1310054359 news.xs4all.nl 21858 [2001:888:2000:d::a6]:43779 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:9036 On Thu, Jul 7, 2011 at 1:12 AM, Ulrich Eckhardt 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.