English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Bug in Filename.basename?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-09-05 (12:00)
From: Erik de Castro Lopo <mle+ocaml@m...>
Subject: Re: [Caml-list] Bug in Filename.basename?
Oliver Bandel wrote:

> But possibly it's not different to other basename-implementations.

Which is exactly what I said later in my email.

> Looking at that documentation, I can't see no bug in the implementation.

Your documentation documents the Ocaml function. 

> When you want to know how your car's GPS-navigation system works,
> do you look in the documentation of your video-camera or vacuum-cleaner?

We are not talking about GPS systems or video cameras or vacuum cleaners,
but if you want we can continue; I would be complaining if I was sold
a video camera that didn't record video but did suck a lot of air.

The function is called basename just like the IEEE Std 1003.1 standard
function specified by The Open Group:


In the examples section of that document they give these examples:

    Input String    Output String
    "/usr/lib"      "lib"
    "/usr/"         "usr"

Erik de Castro Lopo
"Who would have believed that reading and writing would pay
off?"  -- Homer Simpson