From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p7GGItrn025324 for ; Tue, 16 Aug 2011 18:18:55 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AosBAHCXSk7RVdg2kGdsb2JhbABBqDQIFAEBAQEJCQ0HFAQhgUABAQEBAgESAiwBGx0BAwELBgULOyIBEQEFARwGEyKHTptFCow3glWFNzuIbQIDBoZCBIdZizmMWTyDZQ X-IronPort-AV: E=Sophos;i="4.68,234,1312149600"; d="scan'208";a="105605007" Received: from mail-qw0-f54.google.com ([209.85.216.54]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 16 Aug 2011 18:18:49 +0200 Received: by qwc9 with SMTP id 9so67327qwc.27 for ; Tue, 16 Aug 2011 09:18:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=FjBhsX23jjCTazX1Gh9sFkCR61zC8N3z+kCXbhCKXmo=; b=FCGRvT4uvbjb/1QOwFGzdJXtbBpeNd2pD3jMja8mAxrEZ+yiD0O5/436jMZcP7xYAX PYMSfBSDT/YHdBKetL9HIQFCs6RFs1Xec3g53Mne0oa+/BCZnbqvro4cT/7FZO+z44jq fImwIUx6VaYygHtIFEGB05PrF3yr5rU48RFPc= MIME-Version: 1.0 Received: by 10.224.199.68 with SMTP id er4mr3413322qab.164.1313511528483; Tue, 16 Aug 2011 09:18:48 -0700 (PDT) Received: by 10.229.76.229 with HTTP; Tue, 16 Aug 2011 09:18:48 -0700 (PDT) In-Reply-To: <20110816161042.GA31932@annexia.org> References: <20110816152550.GA21081@annexia.org> <20110816155137.GA18365@ccellier.rd.securactive.lan> <20110816161042.GA31932@annexia.org> Date: Tue, 16 Aug 2011 20:18:48 +0400 Message-ID: From: Dmitry Bely To: "Richard W.M. Jones" Cc: Caml List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id p7GGItrn025324 Subject: Re: [Caml-list] Interfacing with C: bad practice On Tue, Aug 16, 2011 at 8:10 PM, Richard W.M. Jones wrote: > Well it would certainly help if we had a piece of runnable code to > look at.  The code supplied in the original email contains an infinite > loop. Yes, that was my mistake that I corrected later. The loop should be for (; *s != NULL; s++) { list = wrp_ml_cons(caml_copy_string(*s), list); /* bug! */ } - Dmitry Bely