From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: Check for redundancy Date: Fri, 3 Jul 2015 09:36:13 +0600 Message-ID: References: <87si9bl7k7.fsf@nl106-137-147.student.uu.se> <87mvzerv09.fsf@robertthorpeconsulting.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1435894607 4777 80.91.229.3 (3 Jul 2015 03:36:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Jul 2015 03:36:47 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" , Emanuel Berg To: Robert Thorpe Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 03 05:36:46 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZArmQ-0008Vl-At for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Jul 2015 05:36:46 +0200 Original-Received: from localhost ([::1]:39118 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZArmP-0004hj-Bu for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Jul 2015 23:36:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZArmG-0004hZ-Ln for help-gnu-emacs@gnu.org; Thu, 02 Jul 2015 23:36:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZArmF-00041b-Ok for help-gnu-emacs@gnu.org; Thu, 02 Jul 2015 23:36:36 -0400 Original-Received: from mail-lb0-x235.google.com ([2a00:1450:4010:c04::235]:33512) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZArmF-0003z5-Gc for help-gnu-emacs@gnu.org; Thu, 02 Jul 2015 23:36:35 -0400 Original-Received: by lbcui10 with SMTP id ui10so42592651lbc.0 for ; Thu, 02 Jul 2015 20:36:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=k2Sz+UJjmdf3j0s4h8i2792eI1S1HMkVXbn/fYFgnBk=; b=nOEYQ3u4KEuwZ0KxXHkYAbVPpFmhanJW5eBFVyyNxhzIq6u4UTGB3lKYXaAQTnyJg+ qOtj1xm3YgeUDtOTmLEuHxmqFx7+BcyHETKA1WgMf6EXRP7idJS+ut7RM+04pvXxbWvH S1XJry3jo4+mKU/9NOP0KMmKZLZ5flR/1k9Y8ia2Q/wsGnaTT/3QYoHTMG9ZtdjIqlOv Bfm+xz9N3HDi0Lii9zafPiz3M6O5LxMBCGelL1R4MBAuR1eHaBudWCdEqmhCXf4L9FQM tP9cjJAfGX1W8peErEdzoTt+xXlgWYa+OCpfB8WCSxARpmf7IBXLPQgKxJBL8ctUsNV/ zMkQ== X-Received: by 10.152.239.131 with SMTP id vs3mr34459292lac.102.1435894593037; Thu, 02 Jul 2015 20:36:33 -0700 (PDT) Original-Received: by 10.25.43.65 with HTTP; Thu, 2 Jul 2015 20:36:13 -0700 (PDT) In-Reply-To: <87mvzerv09.fsf@robertthorpeconsulting.com> X-Google-Sender-Auth: 6lfdVfFHp07CUQWMUxQe-VwVw1g X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::235 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105372 Archived-At: On Fri, Jul 3, 2015 at 5:37 AM, Robert Thorpe wrote: > It's also useful in MS Window programming where everything is some kind > of handle. Even then though, I would only use it for the user > interface, not every variable as you say. In early Windows programming, all handles were just void*, which made them all seemingly different for the programmer and identical to the compiler. Nowadays (since =E2=89=882002?) the SDK defines a strict mode, where differ= ent kinds of handles become pointers to different tag structure types: struct tagWND; // declared but not defined typedef struct tagWND* HWND; With a sufficiently strongly typed language and compiler, the programmer is protected against accidentally using a HWND as a HBITMAP.