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
lower-case tag names allowed?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2000-11-08 (17:10)
From: Wolfgang Gehrke <wgehrke@d...>
Subject: lower-case tag names allowed?

the top level tells me:

        Objective Caml version 3.00
# let test1 = `A;;
val test1 : [> `A] = `A
# let test2 = `a;;
val test2 : [> `a] = `a

on the other hand the manual says:
Variant tag = uppercase (tag-name ::= capitalized-ident)

Personally I like to have both possibilities, but I would not like to
rewrite the code in the future. In fact one can bounce into a keyword
(let test = `method;; fails).
What is correct?

Thank you,