unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#12241: errata in section 2.4 of Guile v2.0.6 manual
@ 2012-08-20 18:29 Kurt W. Gochko
  2012-09-03 20:35 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Kurt W. Gochko @ 2012-08-20 18:29 UTC (permalink / raw
  To: 12241

The function j0_wrapper() in section 2.4 Writing Guile Extensions of
version 2.0.6 of the Guile Reference manual is incorrect.
	return scm_make_real (j0 (scm_num2dbl (x, "j0")));
should instead be
	return scm_from_double (j0 (scm_to_double (x)));
Note that the correct function can be found in section 5.3.1
A Simple Guile Extension.






^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#12241: errata in section 2.4 of Guile v2.0.6 manual
  2012-08-20 18:29 bug#12241: errata in section 2.4 of Guile v2.0.6 manual Kurt W. Gochko
@ 2012-09-03 20:35 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2012-09-03 20:35 UTC (permalink / raw
  To: Kurt W. Gochko; +Cc: 12241-done

Hi,

"Kurt W. Gochko" <kgochko@comcast.net> skribis:

> The function j0_wrapper() in section 2.4 Writing Guile Extensions of
> version 2.0.6 of the Guile Reference manual is incorrect.
> 	return scm_make_real (j0 (scm_num2dbl (x, "j0")));
> should instead be
> 	return scm_from_double (j0 (scm_to_double (x)));
> Note that the correct function can be found in section 5.3.1
> A Simple Guile Extension.

Indeed.  Fixed, thanks!

Ludo’.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-09-03 20:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-20 18:29 bug#12241: errata in section 2.4 of Guile v2.0.6 manual Kurt W. Gochko
2012-09-03 20:35 ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).