unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Marius Vollmer <mvo@zagadka.de>
Cc: guile-devel@gnu.org
Subject: Re: abort () is scm_gc_sweep ()
Date: Thu, 13 Nov 2003 00:50:22 +0100	[thread overview]
Message-ID: <87r80d170h.fsf@zagadka.ping.de> (raw)
In-Reply-To: <20031010133428.GK7199@powergnu.laas.fr> ( Ludovic Courtès's message of "Fri, 10 Oct 2003 15:34:31 +0200")

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


           reply	other threads:[~2003-11-12 23:50 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20031010133428.GK7199@powergnu.laas.fr>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r80d170h.fsf@zagadka.ping.de \
    --to=mvo@zagadka.de \
    --cc=guile-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).