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

Pervasives.unit #3227

Closed
vicuna opened this issue Feb 27, 2002 · 1 comment
Closed

Pervasives.unit #3227

vicuna opened this issue Feb 27, 2002 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Feb 27, 2002

Original bug ID: 937
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Pas bien important, mais bizarre...

A un endroit où j'avais défini un type unit personnel,
j'ai voulu faire référence au "vrai" unit, donc j'ai essayé
d'utiliser Pervasives.unit. Ca n'a pas l'air de marcher:

type toto = Pervasives.unit;;

Unbound type constructor Pervasives.unit

Est-ce normal ou non ?

Pierre Letouzey

PS: visiblement, meme comportement pour les autres types de Pervasives,
genre bool, int, etc...

@vicuna
Copy link
Author

vicuna commented Mar 6, 2002

Comment author: administrator

A un endroit où j'avais défini un type unit personnel,
j'ai voulu faire référence au "vrai" unit, donc j'ai essayé
d'utiliser Pervasives.unit. Ca n'a pas l'air de marcher:

Est-ce normal ou non ?

Oui c'est normal, mais ce n'est pas tres bien explique dans la doc de
Pervasives. Je vais changer la doc.

En tout cas, la vraie solution c'est de ne pas redefinir les types
built-in, surtout si on en a besoin par la suite.

-- Damien

@vicuna vicuna closed this as completed Mar 6, 2002
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant