Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] New polymorphic variant syntax
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Alain Frisch <frisch@c...>
Subject: Re: [Caml-list] New polymorphic variant syntax
On Wed, 21 Nov 2001, Patrick M Doane wrote:

> Having abbreviations like 'inline' works really well. I'm curious to know
> if there is a good way to represent the following information:
>    <!ELEMENT FORM - - (%flow;)+ -(FORM)>
> This states that a FORM element can have any flow object except for FORM
> (i.e. nesting is not allowed).
> How difficult would it be to extend the polymorphic variant syntax to list
> tags that should not be included in the conjuction? Perhaps this already
> possible? Of course we can always revert to simply listing the variants.

The type [> `Form of t] where t is an abstract type, for instance
should be ok for this, no ?


Bug reports:  FAQ:
To unsubscribe, mail  Archives: