* Camlp4, answering my own question
@ 2009-06-14 0:31 Jacques Le Normand
2009-06-14 7:55 ` [Caml-list] " blue storm
0 siblings, 1 reply; 2+ messages in thread
From: Jacques Le Normand @ 2009-06-14 0:31 UTC (permalink / raw)
To: caml-list caml-list
[-- Attachment #1: Type: text/plain, Size: 252 bytes --]
Dear List,
With regard to the last post, I've found the solution to my problem. The
parts of the grammar are
type_longident_and_parameters
and
type_ident_and_parameters
The question is: what's the difference between these two values?
--Jacques L.
[-- Attachment #2: Type: text/html, Size: 314 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] Camlp4, answering my own question
2009-06-14 0:31 Camlp4, answering my own question Jacques Le Normand
@ 2009-06-14 7:55 ` blue storm
0 siblings, 0 replies; 2+ messages in thread
From: blue storm @ 2009-06-14 7:55 UTC (permalink / raw)
To: Jacques Le Normand; +Cc: caml-list caml-list
On Sun, Jun 14, 2009 at 2:31 AM, Jacques Le Normand<rathereasy@gmail.com> wrote:
> Dear List,
> With regard to the last post, I've found the solution to my problem. The
> parts of the grammar are
> type_longident_and_parameters
> and
> type_ident_and_parameters
>
> The question is: what's the difference between these two values?
type_ident_... only accepts a lowercase identifier ("foo"), while
type_longident_.. accepts a qualified type identifier ("Bar.foo", and
other strangeties). type_ident_... is used for type declarations, and
type_longident_... is used when referring to an existing type in the
"with ..." module constraint :
module type A = sig
module B : sig type t end
end
module type C = A with type B.t = int
It's the distinction between "naming objects" (typeconstr-name) and
"referring to named objects" (typeconstr) in the manual :
http://caml.inria.fr/pub/docs/manual-ocaml/manual011.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-06-14 7:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-14 0:31 Camlp4, answering my own question Jacques Le Normand
2009-06-14 7:55 ` [Caml-list] " blue storm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox