Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* [Caml-list] Why is the parameter of a type declaration a coretype?
@ 2015-10-26 13:20 Christoph Höger
  2015-10-26 13:33 ` Leo White
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Höger @ 2015-10-26 13:20 UTC (permalink / raw)
  To: caml-list

I am writing a syntax extension for OCaml and the following puzzles me:

and type_declaration =
    {
     ptype_name: string loc;
     ptype_params: (core_type * variance) list;
                    ^^^^^^^^^

Why is a type-parameter a core_type and not just a string? What is the
meaning of a non-variable parameter?


-- 
Christoph Höger

Technische Universität Berlin
Fakultät IV - Elektrotechnik und Informatik
Übersetzerbau und Programmiersprachen

Sekr. TEL12-2, Ernst-Reuter-Platz 7, 10587 Berlin

Tel.: +49 (30) 314-24890
E-Mail: christoph.hoeger@tu-berlin.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-10-26 13:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-26 13:20 [Caml-list] Why is the parameter of a type declaration a coretype? Christoph Höger
2015-10-26 13:33 ` Leo White

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox