unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Re: abort () is scm_gc_sweep ()
       [not found] <20031010133428.GK7199@powergnu.laas.fr>
@ 2003-11-12 23:50 ` Marius Vollmer
  0 siblings, 0 replies; only message in thread
From: Marius Vollmer @ 2003-11-12 23:50 UTC (permalink / raw)
  Cc: guile-devel

Ludovic Courtès <ludovic.courtes@laas.fr> writes:

> In function scm_gc_sweep () (gc.c:1922) appears the following condition:
>
>   if (scm_mallocated < m)
>     abort ();
>
> The comment above the abort () is very clear about why this happens.
> However, since the triggering of this abort () can only be due to the
> non respect of Guile's programming conventions by the programmer, I
> think it would be a good idea to rather use something like
>
>   assert (scm_mallocated < m);
>
> instead of just abort ().

Yes, that would be better.  There are a lot of places where we use
abort.  Maybe most of them could be changed to assertions.

So, if someone has a patch... ;-)

-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-11-12 23:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20031010133428.GK7199@powergnu.laas.fr>
2003-11-12 23:50 ` abort () is scm_gc_sweep () Marius Vollmer

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