[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#596299: marked as done (libextlib-ocaml-dev: (@) operator will not be loaded correctly, if using module ExtLib, link to bugreport/fix attached)



Your message dated Mon, 15 Aug 2011 21:51:08 +0200
with message-id <4E4978AC.8040009@debian.org>
and subject line Re: libextlib-ocaml-dev: (@) operator will not be loaded correctly, if using module ExtLib, link to bugreport/fix attached
has caused the Debian Bug report #596299,
regarding libextlib-ocaml-dev: (@) operator will not be loaded correctly, if using module ExtLib, link to bugreport/fix attached
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
596299: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=596299
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: libextlib-ocaml-dev
Version: 1.5.1-1+b2
Severity: normal
Tags: patch


Hello,

in my code I ran into the problem described here:
https://code.google.com/p/ocaml-extlib/issues/detail?id=13

If you have large lists and want to append them via @-operator, the
original @-operator of stdlib will be called. The problem is, that the
stdlib-operator is not tail recursive and you could get stackoverflow
error.

Because the Extlib-package, in detail the ExtList-module delivers an @-operator which *is* tail-recursive an
stackoverflow should not occure anymore.

The problem was, that the ExtLib module does not include the
ExtList-Module correctly.

For details see link above, the fix is found on
https://code.google.com/p/ocaml-extlib/issues/attachmentText?id=13&aid=5064188974096909548&name=import-at-append.patch&token=2bc2f2440a48519b5648a2bf52fc1c5e

Bye Andreas

-- System Information:
Debian Release: 5.0.6
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libextlib-ocaml-dev depends on:
ii  ocaml-findlib                 1.2.1-5    Management tool for OCaml programm
ii  ocaml-nox [ocaml-nox-3.10.2]  3.10.2-3   ML language implementation with a 

libextlib-ocaml-dev recommends no packages.

libextlib-ocaml-dev suggests no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
Version: 1.5.2-1

Le 10/09/2010 09:34, Andreas Romeyke a écrit :
> Because the Extlib-package, in detail the ExtList-module delivers an @-operator which *is* tail-recursive an
> stackoverflow should not occure anymore.

I think this addresses your concerns: Feel free to reopen if it is not
the case.

$ git diff upstream/1.5.1..upstream/1.5.2 -- extLib.ml
diff --git a/extLib.ml b/extLib.ml
index 17ddb56..64a1ab7 100644
--- a/extLib.ml
+++ b/extLib.ml
@@ -40,4 +40,6 @@ module Array = ExtArray.Array

 exception Invalid_string = ExtString.Invalid_string

+let (@) = ExtList.(@)
+
 include Std


Cheers,

-- 
Stéphane



--- End Message ---

Reply to: