From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12559 invoked by alias); 25 May 2003 22:48:29 -0000 Mailing-List: contact guile-gtk-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: guile-gtk-owner@sources.redhat.com Received: (qmail 12519 invoked from network); 25 May 2003 22:48:28 -0000 Received: from unknown (HELO snoopy.pacific.net.au) (61.8.0.36) by sources.redhat.com with SMTP; 25 May 2003 22:48:28 -0000 Received: from sunny.pacific.net.au (sunny.pacific.net.au [203.2.228.40]) by snoopy.pacific.net.au (8.12.3/8.12.3/Debian-6.3) with ESMTP id h4PMmQPB016529 for ; Mon, 26 May 2003 08:48:27 +1000 Received: from wisma.pacific.net.au (wisma.pacific.net.au [210.23.129.72]) by sunny.pacific.net.au with ESMTP id h4PMmQQg026392 for ; Mon, 26 May 2003 08:48:26 +1000 (EST) Received: from localhost (ppp29.dyn228.pacific.net.au [203.143.228.29]) by wisma.pacific.net.au (8.12.9/8.12.9) with ESMTP id h4PMmOYZ001692 for ; Mon, 26 May 2003 08:48:25 +1000 (EST) Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 19K4Hn-0000N6-00; Mon, 26 May 2003 08:48:15 +1000 To: guile-gtk@sources.redhat.com Subject: Re: texinfo documentation References: <87llxd2c59.fsf@zip.com.au> <874r3lmifw.fsf@zip.com.au> <87of1tjjwy.fsf@zip.com.au> <87znldi1wl.fsf@zip.com.au> From: Kevin Ryde Date: Sun, 25 May 2003 22:48:00 -0000 In-Reply-To: (Marko Rauhamaa's message of "23 May 2003 22:45:24 -0700") Message-ID: <87el2mmymo.fsf@zip.com.au> User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-q2/txt/msg00108.txt.bz2 Marko Rauhamaa writes: > > Kevin Ryde : > >> `app' >> Don't be tempted to define `app' to some sort of widget or the >> like. In Guile 1.6.4 `app' is used for the implementation of the >> module system. > > What does that mean? Exactly what it says. Try defining app to something and then doing a use-modules. > It's ok to pass vectors as well. > > Arrays are passed and returned as guile vectors, but it's ok to pass > lists as well. Yep, I haven't put that yet. > I don't know (yet) how much of the whole story needs to be exposed to > the application developer, but the GTK functions dealing with signals > come in two C variants: regular and full. The guile code always uses the > full variant but strips the "-full" suffix from the procedure name. I haven't looked closely enough to see if full variants work or can be usefully used from scheme code. The regular forms are presumably what will be used most often. > It may be worth noting that the guile version of a nonvoid C function > with k output parameters returns a list with (k + 1) elements, but the > guile version of a void C function with k output parameters returns a > list with k elements. I'll add another example. > Also: GdkRectangle is a pair of pairs. However, whenever it is an input > parameter, GdkRectangle is expanded into (x y w h). Thus the > pair-of-pairs format is used only to return a GdkRectangle. That's rather inconsistent, and will probably make life hard if one wants to pass a returned value on to another function. -- All messages to the list only.