* slightly OT: anyone reading this list with Mutt?
@ 2005-12-01 22:31 Eric Cooper
0 siblings, 0 replies; 2+ messages in thread
From: Eric Cooper @ 2005-12-01 22:31 UTC (permalink / raw)
To: caml-list
When I reply to this list using the "list-reply" command in mutt, it
creates a message addressed to both caml-list@inria.fr and
caml-list@yquem.inria.fr. Anyone know a workaround to prevent the
duplication? (This doesn't happen on any other lists I subscribe to.)
--
Eric Cooper e c c @ c m u . e d u
^ permalink raw reply [flat|nested] 2+ messages in thread
* Style and organization of code
@ 2007-03-14 22:25 ian
2007-03-15 13:38 ` dynamically finding libraries Vu Ngoc San
0 siblings, 1 reply; 2+ messages in thread
From: ian @ 2007-03-14 22:25 UTC (permalink / raw)
To: caml-list
I'm looking for a guidebook or just some rules of thumb on how to organize my
OCaml code.
One example:
Say I have a function called "solveHardProblem". solveHardProblem relies on
several helper functions, which are not going to be useful to any other
functions in the program. So, my first instinct would be to define all the
helpers using let blocks within the definition of solveHardProblem.
But that would make the definition of solveHardProblem really long -- several
screens of text -- which I've been taught to avoid. Is it wrong to use a module
to hide those functions if the module signature will contain only that of
solveHardProblem?
And say you DO choose to use a module... The OCaml documentation says that the
compiler can automatically infer the signature without the need to create a .mli
file for it. Does anyone actually use that feature in practice, or is creating
a sig hard-wired to the act of creating a struct?
Thanks,
-Ian
^ permalink raw reply [flat|nested] 2+ messages in thread
* dynamically finding libraries
2007-03-14 22:25 Style and organization of code ian
@ 2007-03-15 13:38 ` Vu Ngoc San
2007-03-15 17:10 ` [Caml-list] " Eric Cooper
0 siblings, 1 reply; 2+ messages in thread
From: Vu Ngoc San @ 2007-03-15 13:38 UTC (permalink / raw)
Cc: caml-list
I have a program compiled to native code on a linux machine, which uses
some more-or-less "standard" library like libpangocairo-1.0.so.0.
Since this library is not universally present on all linux boxes, I
suspect it might be not so easy for an average user to install it.
Moreover, it's very small. Therefore I decide to ship it with my software.
The question is: is there a way to decide, at run-time, whether the user
already has this library or not ? If so, I can ignore (and even delete)
the version I shipped, and use the user's library. If not, I fall back
on "my" version.
San
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] dynamically finding libraries
2007-03-15 13:38 ` dynamically finding libraries Vu Ngoc San
@ 2007-03-15 17:10 ` Eric Cooper
2007-03-15 17:29 ` slightly OT: anyone reading this list with Mutt? Eric Cooper
0 siblings, 1 reply; 2+ messages in thread
From: Eric Cooper @ 2007-03-15 17:10 UTC (permalink / raw)
To: caml-list, caml-list
On Thu, Mar 15, 2007 at 02:38:25PM +0100, Vu Ngoc San wrote:
> The question is: is there a way to decide, at run-time, whether the user
> already has this library or not ?
if pkg-config --exists pangocairo; then
echo yes
else
echo no
fi
--
Eric Cooper e c c @ c m u . e d u
^ permalink raw reply [flat|nested] 2+ messages in thread
* slightly OT: anyone reading this list with Mutt?
2007-03-15 17:10 ` [Caml-list] " Eric Cooper
@ 2007-03-15 17:29 ` Eric Cooper
0 siblings, 0 replies; 2+ messages in thread
From: Eric Cooper @ 2007-03-15 17:29 UTC (permalink / raw)
To: caml-list
When I list-reply to a message on this list, my outgoing message
header gets set to
caml-list@yquem.inria.fr, caml-list@inria.fr
When I notice it, I can manually delete one, but I often forget,
resulting in a duplicated post. Does this happen to anyone else, and
is there a fix?
--
Eric Cooper e c c @ c m u . e d u
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-03-15 17:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-01 22:31 slightly OT: anyone reading this list with Mutt? Eric Cooper
2007-03-14 22:25 Style and organization of code ian
2007-03-15 13:38 ` dynamically finding libraries Vu Ngoc San
2007-03-15 17:10 ` [Caml-list] " Eric Cooper
2007-03-15 17:29 ` slightly OT: anyone reading this list with Mutt? Eric Cooper
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox