Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Printf question
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Pierre Weis <pierre.weis@i...>
Subject: Re: [Caml-list] Printf question
> On Tue, Sep 30, 2003 at 12:36:59AM +0200, Pierre Weis wrote:
> > What do you mean by ``not type safe at all'' ?
> 
> Well it's not a bug in the compiler.
> 
> Here's an example which isn't type safe:
> 
> let sth = dbh#prepare "select name from employees where id = %a" in
> sth#execute string_conversion "foo";
> 
> To avoid going over the same ground again, here's my original posting
> in this thread:
> 
> http://caml.inria.fr/archives/200309/msg00294.html
> 
> Rich.

I'm sorry to confess I do not understand the example. BTW my fresh Caml
compiler has the same problem :(

        Objective Caml version 3.07

# let sth = dbh#prepare "select name from employees where id = %a" in
  sth#execute string_conversion "foo";
  ;;
Unbound value dbh

Could you give us a self contained example that would run into the
current version and exhibit the ``isn't type safe'' property ?

(To me a type safety problem is of prime importance, and I would fill
better when I understand yours :)

Pierre Weis

INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://pauillac.inria.fr/~weis/


-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners