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
Re: [Caml-list] "lnot" missing from documented keywords list
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-07-19 (04:10)
From: Robert Roessler <roessler@r...>
Subject: Re: [Caml-list] "lnot" missing from documented keywords list
Martin Jambon wrote:

> On Mon, 18 Jul 2005, Robert Roessler wrote:
>>I just noticed this when my OCaml syntax-colorer failed to render lnot
>>as a keyword... :)
>>So I checked the manual section (6.1 "Lexical conventions", subsection
>>"Keywords") that served as the reference for said syntax-colorer and
>>noticed that lnot is not there.
>>Since the other "bitwise" logical operators are listed as keywords, I
>>assume this is an oversight?
> I guess these were made keywords keywords so that they can become
> infix operators. lnot doesn't have this problem since it takes only
> one argument.

Thanks, Martin - that sounds plausible, and I wondered if there was
some arcane reason for the "missing" lnot... this probably also
explains why lnot does not appear in lexer.mll - I had missed this
file on my first pass through the sources. :)

Robert Roessler