From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4b27f494a96e0530 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!freenix!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: A community Windows binding Date: 14 Oct 2004 21:12:14 -0400 Organization: Cuivre, Argent, Or Message-ID: References: <2004100600261150073%david@bottoncom> <2smd6iF1mo0mcU1@uni-berlin.de> <9JI9d.213784$D%.188112@attbi_s51> NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: melchior.cuivre.fr.eu.org 1097802747 29900 212.85.156.195 (15 Oct 2004 01:12:27 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Fri, 15 Oct 2004 01:12:27 +0000 (UTC) To: comp.lang.ada@ada-france.org Return-Path: In-Reply-To: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: g2news1.google.com comp.lang.ada:5228 Date: 2004-10-14T21:12:14-04:00 "Warren W. Gay VE3WWG" writes: > Ah, but some systems work with "user data" parameters better > than others. In C/C++, the issue is easy because of the liberal > use of void *ptrs, but in Ada one constantly pines for a > purer strongly typed way to do it. GWindows, CLAW, and Windex are all strongly typed at the user code level. One core routine does all the unchecked conversions from the Win32 API types. GtkAda is less strongly typed, because the user has to figure out what generics to instantiate to get the marshalling right. That's one reason I'm giving up on it. > The only practical way to do this in a pure Ada way IMO, is to have > a "main object" that you can extend. Which is how GWindows, CLAW, and Windex do it. Great minds do think alike ;). -- -- Stephe