caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Filename.chop_suffix
@ 1998-05-08 20:52 David Delahaye
  0 siblings, 0 replies; only message in thread
From: David Delahaye @ 1998-05-08 20:52 UTC (permalink / raw)
  To: caml-list

    Bonsoir,

    Je suis tombe, par hasard, sur une phrase du manuel d'ocaml en ligne qui
m'a un peu interpelle (dans Filename):

> val chop_suffix : string -> string -> string
> 
>      chop_suffix name suff removes the suffix suff from the filename name. The
>      behavior is undefined if name does not end with the suffix suff. 

    Cela ressemble fortement a un trou semantique. Pourquoi ne pas lever tout
simplement une exception qui caracteriserait entierement le comportement de
cette fonction?

    Amicalement.

    David.

===============================================================================
David Delahaye                                 <Email>: David.Delahaye@inria.fr
<Laboratory>: The Coq Project                                  <Domain>: Proofs
<Adress>: INRIA-Rocquencourt Domaine de Voluceau BP105 78153 Le Chesnay Cedex
          FRANCE
<Tel>: (33)-(0)1 39 63 57 53
<Fax>: (33)-(0)1 39 63 56 84
<Url>: http://pauillac.inria.fr/~delahaye
===============================================================================

[If you have time to waste, you can have a look on my proof that all the real
 number are positive. Given x in R:

   x^2>=0                 (well-known result)
   (x^2)^(1/2)>=(0)^(1/2) (use of power on each member)
   x^(2*1/2)>=0           (use of the propertie: (x^n)^m=x^(n*m)
   x^1>=0                 (very easy simplification) 
   x>=0                   (great!)]







^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-05-11  9:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-05-08 20:52 Filename.chop_suffix David Delahaye

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).