From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Maxime Devos Newsgroups: gmane.lisp.guile.devel Subject: Re: "INTERNAL ERROR IN FORMAT-ERROR!" Date: Tue, 19 Apr 2022 19:09:39 +0200 Message-ID: <1140164609657f0324c3dcbbc04084b990441276.camel@telenet.be> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-xWhk8vd1jZxgFstryxXR" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3192"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.38.3-1 To: Jean Abou Samra , guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Tue Apr 19 19:10:56 2022 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ngrNQ-0000c7-GD for guile-devel@m.gmane-mx.org; Tue, 19 Apr 2022 19:10:56 +0200 Original-Received: from localhost ([::1]:57432 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngrNP-0005oo-BU for guile-devel@m.gmane-mx.org; Tue, 19 Apr 2022 13:10:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34362) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngrMM-0005nG-98 for guile-devel@gnu.org; Tue, 19 Apr 2022 13:09:50 -0400 Original-Received: from baptiste.telenet-ops.be ([2a02:1800:120:4::f00:13]:45834) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngrMK-0004jf-BH for guile-devel@gnu.org; Tue, 19 Apr 2022 13:09:49 -0400 Original-Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by baptiste.telenet-ops.be with bizsmtp id Lh9j2700V4UW6Th01h9jah; Tue, 19 Apr 2022 19:09:44 +0200 In-Reply-To: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1650388184; bh=TRGwvk3Fi6v1on+H6j2VG6XBMFcQoCzvbpHmTZgLGdk=; h=Subject:From:To:Date:In-Reply-To:References; b=JaeKdg1xUWCSCRzLFy2hm9c4FLnMaJOqBC8wAVqe6IRHnh1tW9eux60QCcji8PXog 1lOVjgIgvx7XyGw4f51wAGOCW5JrjCos7wA8nwmceZPewqyrXIWzqd01JHhCo6Zdzw ECOD1AXb1hMO+AHJiTkYvMpNdfZuwis3RikUBD1p5Z1GAwstesw0xOZ3s5VsRuE0Jm t/iy3LauLGKpnftb4I37iu9bKwn4A/a4N8B9oarlJUeVZWobZm0wMENAkveYhj6/Zy N6O0OK/U4GQsPpqhrRopWv2Qc9w/hxulWoYDonNu5elG43qzE5iWyokFNMTIbapbRJ rxjkWQuI3Ov8g== Received-SPF: pass client-ip=2a02:1800:120:4::f00:13; envelope-from=maximedevos@telenet.be; helo=baptiste.telenet-ops.be X-Spam_score_int: -22 X-Spam_score: -2.3 X-Spam_bar: -- X-Spam_report: (-2.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, SUBJ_ALL_CAPS=0.5, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.io gmane.lisp.guile.devel:21192 Archived-At: --=-xWhk8vd1jZxgFstryxXR Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Jean Abou Samra schreef op di 19-04-2022 om 18:52 [+0200]: > The simple file >=20 > (format #f "~f" 'invalid) >=20 > gives me >=20 > FORMAT: error with call: (format #f "~f<=3D=3D=3D" =3D=3D=3D>invalid ) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 argument is not a number= or a number string > FORMAT: INTERNAL ERROR IN FORMAT-ERROR! > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 destination: #f > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 format string: "~f" > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 format args: (invalid) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 error args:=C2=A0 (#f "e= rror in format" () #f) > ice-9/boot-9.scm:1685:16: In procedure raise-exception: > error in format >=20 >=20 > Is it expected to see 'INTERNAL ERROR IN FORMAT-ERROR!'? > To me, that has a meaning similar to an assertion failure. Doesn't look internal to me, looks like an error at the use site of 'format'. I think the error message can be reworded a bit to make it clearer: format: The format string is incompatible with the passed arguments. relevant part of format string: "~f" invalid argument: invalid expected: a number destination: #f format string: "~f" format arguments: (invalid) [no error args, because that would be redundant] Greetings, Maxime. --=-xWhk8vd1jZxgFstryxXR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYl7s0xccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7vbfAQD6rCJXVOPETUy8x+uF6qFVvOMt wx6GZLw/jieLMMxrwAEAyLaQzC1sovU0zXt43A5zLofHuofRE0kfMmJbsn/6BQI= =Et3s -----END PGP SIGNATURE----- --=-xWhk8vd1jZxgFstryxXR--