From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GEY1Aw/K7mFI+gAAgWs5BA (envelope-from ) for ; Mon, 24 Jan 2022 16:47:27 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QDKSNw7K7mH0ngAAG6o9tA (envelope-from ) for ; Mon, 24 Jan 2022 16:47:26 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AF6B03DF2A for ; Mon, 24 Jan 2022 16:47:26 +0100 (CET) Received: from localhost ([::1]:50934 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nC1Yz-0000uc-U2 for larch@yhetil.org; Mon, 24 Jan 2022 10:47:25 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34994) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nC1YR-0008KY-RK for guix-devel@gnu.org; Mon, 24 Jan 2022 10:46:52 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:50472) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nC1YQ-0002MY-44 for guix-devel@gnu.org; Mon, 24 Jan 2022 10:46:51 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 0309A8B; Mon, 24 Jan 2022 16:46:48 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4tO_sdOkJWox; Mon, 24 Jan 2022 16:46:45 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id C9DB54EC; Mon, 24 Jan 2022 16:46:44 +0100 (CET) From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Simon Streit Subject: Re: WSDD Service Module References: X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 5 =?utf-8?Q?Pluvi=C3=B4se?= an 230 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 24 Jan 2022 16:46:44 +0100 In-Reply-To: (Simon Streit's message of "Wed, 19 Jan 2022 10:29:34 +0100") Message-ID: <87ee4xrva3.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: / X-Rspamd-Server: hera X-Rspamd-Queue-Id: 0309A8B X-Spamd-Result: default: False [0.73 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_MIXED_CHARSET(0.83)[subject]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] Received-SPF: softfail client-ip=185.233.100.1; envelope-from=ludo@gnu.org; helo=hera.aquilenet.fr X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.665 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1643039246; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=hs/MgG78uzmYGqmawXSQFRBZhpKL2CEi/5scqWUFUKw=; b=XL7EbdLucq5GROhV4LiEADm1+uUfNhO2rbFzBvAFZBWprOfRCvHvNLOrYYcNQ/pxPYoWeO /Wz/cOaVuGSX46NTNF1yrC0FlpOuiVsltO6NrLLfd5NKIgNsfJIltm2fdTj0g2g5kulhIB MCp9YgmSF2jegDGUvAK6wIfDqvpz9YenYx0WcRWHVtr0v9BLoicidtct1+dnM4DMFdu8wQ w3/Toz5fOmEATHdoVQBbdddz8WxUkjM0FQUge/NTUtFz3SF0u/q/bA+f2Y5yzRjpePWbu5 4wjQEKkCDiH8Aem/as0T0jItVBKYFk/WhVcNQxeFsmuTxROYcbya6C4i2Iczog== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643039246; a=rsa-sha256; cv=none; b=irTQ+7/bI+q0v5Pp6y+Tr4HI1lrWTbUkkgZrJJSLA68qbkVMDx/oQjyAC004NXZPPlczTn kUxLgh0fqogFOBg6E32nJ5B9g1qse13wmVcQ01L8pjhEKxXcNNIkyM3mTKfIPuqpmiWz8+ rAu8wJC55kZKC1TWdHmpyOyTUxtcM1UBGPnKlsHzLw4zT+g7/AQK57y5xL3jo9PRloOqFP wHh6a47VYFftDmUuNjRG1kLtqQ83n9AKRLll4/ysYj+6Yn4rdCz3u8GVvyJQ0ng89escBh g1UMUJOn3JFXHGrRTwh/80K9IdT4b0MYvYaUYN2EyWylBTRwksMvepi1bKJuZw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.43 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: AF6B03DF2A X-Spam-Score: -4.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: pO4XO07cv8m6 Hi, Simon Streit skribis: > Unfortunately while preparing its service, there is this one part that > I'm having trouble trying to get working: > > #$(if interface > #~(for-each (lambda (arg) > (display (string-append "--interface" arg)) > ;; (format #t "--interface ~a " (list->string arg)) > ) > #$(interface)) > '()) > > Which is the main intention for this post: I'd really appreciate a little > hint on how to solve this small problem. Everything else looks okay. My understanding is that you intend the =E2=80=98interface=E2=80=99 field t= o be either #f or a string, is that right? When you write: (interface) that means: =E2=80=9Ccall the procedure bound to =E2=80=98interface=E2=80= =99, passing it zero arguments=E2=80=9D. However, if =E2=80=98interface=E2=80=99 is a string, y= ou cannot call it, so you get a wrong-type-to-apply error. Likewise, =E2=80=98for-each=E2=80=99 expects its second argument to be a li= st. But here, =E2=80=98interface=E2=80=99 is supposedly a string, not a list, so if= you do: (for-each (lambda =E2=80=A6) interface) you=E2=80=99ll get a wrong-type-argument error. HTH! Ludo=E2=80=99.