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

Better error messages for missing fields? #2759

Closed
vicuna opened this issue May 7, 2001 · 2 comments
Closed

Better error messages for missing fields? #2759

vicuna opened this issue May 7, 2001 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented May 7, 2001

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

Bug description

Full_Name: Donald Syme
Version: 2.01
OS: Win32
Submission from: 207.46.60.8 (207.46.60.8)

When constructing records, it would be handy if the error message indicated
which fields were missing, and perhaps what their types are:

type x = {a:int; b:int; c: int};;

type x = { a : int; b : int; c:int; }

{a=1};;

Characters 0-5:
Some record field labels are undefined

Thanks!
Don

@vicuna
Copy link
Author

vicuna commented May 10, 2001

Comment author: administrator

When constructing records, it would be handy if the error message indicated
which fields were missing, and perhaps what their types are:

Sounds like a good idea.
Printings the types might be a bit cumbersome, I just added the field names:

    Objective Caml version 3.01+2s (2001-05-08)

type x = {a:int; b:int; c: int};;

type x = { a : int; b : int; c : int; }

{a=1};;

Some record field labels are undefined: b c

This is not in the main CVS yet, since I commited it on a different branch, but
this will be in the next release.

Jacques Garrigue

@vicuna
Copy link
Author

vicuna commented Jun 29, 2001

Comment author: administrator

Feature added on branch strict_labels by JG (2001-05-10).
Merged in main branch (2001-06-29).

@vicuna vicuna closed this as completed Jun 29, 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