unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* A question about SCM_DEFINE & guile-snarf
@ 2011-06-15 22:06 Peter TB Brett
  2012-01-08 16:56 ` Andy Wingo
  0 siblings, 1 reply; 2+ messages in thread
From: Peter TB Brett @ 2011-06-15 22:06 UTC (permalink / raw)
  To: guile-user

[-- Attachment #1: Type: text/plain, Size: 585 bytes --]


The Guile manual says:

> For historical reasons, the `SCM_DEFINE' macro also defines a static
> array of characters named `s_clear_image', initialized to the string
> "clear-image".  You shouldn't use this array, but you might need to be
> aware that it exists.

Why is using this discouraged?  libguile itself does!

And it's very convenient when raising errors in the function, or marking
the function for export using scm_c_export()...

                             Peter

-- 
Peter Brett <peter@peter-b.co.uk>
Remote Sensing Research Group
Surrey Space Centre

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: A question about SCM_DEFINE & guile-snarf
  2011-06-15 22:06 A question about SCM_DEFINE & guile-snarf Peter TB Brett
@ 2012-01-08 16:56 ` Andy Wingo
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Wingo @ 2012-01-08 16:56 UTC (permalink / raw)
  To: Peter TB Brett; +Cc: guile-user

On Thu 16 Jun 2011 00:06, Peter TB Brett <peter@peter-b.co.uk> writes:

> The Guile manual says:
>
>> For historical reasons, the `SCM_DEFINE' macro also defines a static
>> array of characters named `s_clear_image', initialized to the string
>> "clear-image".  You shouldn't use this array, but you might need to be
>> aware that it exists.
>
> Why is using this discouraged?  libguile itself does!
>
> And it's very convenient when raising errors in the function, or marking
> the function for export using scm_c_export()...

Indeed, this note was in error.  I have fixed it now; thanks for the
report!

Andy
-- 
http://wingolog.org/



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

end of thread, other threads:[~2012-01-08 16:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-15 22:06 A question about SCM_DEFINE & guile-snarf Peter TB Brett
2012-01-08 16:56 ` Andy Wingo

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).