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

the fun is not consistent #2945

Closed
vicuna opened this issue Sep 3, 2001 · 2 comments
Closed

the fun is not consistent #2945

vicuna opened this issue Sep 3, 2001 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Sep 3, 2001

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

Bug description

Hi,
I am a newbie, but I am sure this was not a problem in the previous release of ocaml.
The code
fun true -> false | false->true;;
does not compile.
However,
fun true -> false;;
compiles.
I figure either both should work, or both should fail to work.
I am using version 3.02 on linux (redhat 7.1).
Regards,
Willem Duminy


<STYLE></STYLE>
Hi,
I am a newbie, but I am sure this was not a problem in the previous release of ocaml.
The code
fun true -> false | false->true;;
does not compile.
However,
fun true -> false;;
compiles.
I figure either both should work, or both should fail to work.
I am using version 3.02 on linux (redhat 7.1).
Regards,
Willem Duminy


@vicuna
Copy link
Author

vicuna commented Sep 4, 2001

Comment author: administrator

Hi,

On Mon, Sep 03, 2001 at 09:41:51PM +0200, wduminy@freemail.absa.co.za wrote:

The code
fun true -> false | false->true;;
does not compile.

Use "function"; "fun" is only when there is one only case.

--
Daniel de RAUGLAUDRE
daniel.de_rauglaudre@inria.fr
http://cristal.inria.fr/~ddr/

@vicuna
Copy link
Author

vicuna commented Sep 10, 2001

Comment author: administrator

"fun" handles only one case.

@vicuna vicuna closed this as completed Sep 10, 2001
@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