From: Maltey UPS <Francois.Maltey@enst-bretagne.fr>
To: caml-list@inria.fr
Cc: Francois.Maltey@enst-bretagne.fr
Subject: garbage collector / lien avec le C et librairie strlib
Date: Fri, 13 Nov 1998 06:34:15 +0100 [thread overview]
Message-ID: <199811130534.GAA16498@audrey.enst-bretagne.fr> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1110 bytes --]
(Re)Bonjour
Je me mets à caml car je fais cette année des TP d'info en caml.
Je découvre le langage... et sa pratique, je m'aperçois que la
librairie contrib/libstr permet de traiter les expressions régulières
comme grep (ou un autre programme utilisant GNU-regexp)
[après une petite modification qui ne choisit pas obligatoirement
les expressions régulières à la emacs, que je toruve un peu pauvre]
Ceci me permet de faire en caml les mêmes petits programmes que ceux
que je faisais en perl.
// MA QUESTION //
J'ai l'impression que le programme regex.c (qui crée des automates
de reconnaissance d'expressions régulières) fait des "malloc".
Je ne sais pas si (ni comment comprendre) caml "récupère" la mémoire
lors d'un "garbage collector" lorsque, après avoir créé une expression
réguliere (avec str__regexp) le programme ne l'utilise plus et elle
n'est plus accessible.
Si quelqu'un peut m'éclairer...
Le petit livre "manuel de référence" est très bien (sans aucune ironie)
mais ne sachant pas comment prendre ses indications, je suis perdu !
Bien cordialement
francois.maltey@enst-bretagne.fr
next reply other threads:[~1998-11-13 7:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-11-13 5:34 Maltey UPS [this message]
1998-11-13 9:48 ` Xavier Leroy
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199811130534.GAA16498@audrey.enst-bretagne.fr \
--to=francois.maltey@enst-bretagne.fr \
--cc=caml-list@inria.fr \
/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