Version française
Home     About     Download     Resources     Contact us    
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: Patrick M Doane <patrick@w...>
Subject: Re: [Caml-list] New polymorphic variant syntax
On Wed, 21 Nov 2001, Alain Frisch wrote:

> 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 ?

I was thinking about that but isn't it rather confusing? It certainly
disables the use of `Form, but it would be clearer if there was no mention
of it at all.

Patrick

-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr