Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re: [Caml-devel] Feature request: Allow use of exact polymorphic variants before end of type definition (PR#3721) #3722

Closed
vicuna opened this issue Jul 15, 2005 · 0 comments

Comments

@vicuna
Copy link

vicuna commented Jul 15, 2005

Original bug ID: 3722
Reporter: administrator
Status: closed
Resolution: won't fix
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)

Bug description

From: ethan.aubin@pobox.com

Hi, Would it be hard to allow polymorphic variants to be used in type
definitions such as:

type x = [ X ] and xy = [ Y | x ]

which fails printing:

The type constructor x is not yet completely defined.

Not very hard, if we fix the order of definition.
That is, if we require that x appears before xy.
However, this would not be very clean to introduce such asymmetry in
type definitions.
If we start to infer dependencies between definitions, to allow this
in any order, this gets rather complicated for limited benefits.

So there is no plan to change this...

Jacques

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant