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

wish: string argument to assert #2556

Closed
vicuna opened this issue Sep 1, 2000 · 0 comments
Closed

wish: string argument to assert #2556

vicuna opened this issue Sep 1, 2000 · 0 comments

Comments

@vicuna
Copy link

vicuna commented Sep 1, 2000

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

Bug description

Full_Name: Christian Lindig
Version: 3.0
OS: Linux
Submission from: lakeland.eecs.harvard.edu (140.247.62.173)

This is something on my wish list: to track down problems when an assertion
fails
I would like to pass a string argument to the assertion that is printed when it
fails. Of course, ocamldebug can be used for this purposes but it is less
convenient. In order to not break old code the string argument could be modeled
as an optional argument using the new O'Labl feature or a new assert' function
could be introduced.

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