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

Factorise yet another small bit of the byte/native toplevels #10187

Merged
2 commits merged into from Feb 11, 2021

Conversation

AltGr
Copy link
Member

@AltGr AltGr commented Feb 2, 2021

It's actually even simpler this way!

Note that one small change in the interface was required: the function
Toploop.eval_address could raise a Symtable.Error for undefined globals. Since
that wouldn't make sense for the native toplevel, we define a specific exception
for this purpose. Hopefully no one was relying on this at so low-level.

Copy link
Contributor

@Drup Drup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is indeed much nicer that way. :)

@gasche
Copy link
Member

gasche commented Feb 4, 2021

Travis complains that you are missing a Changes entry (you could add this PR number to the previous factoring-the-toplevels change entry, if there is one), and that the dependencies are not up-to-date anymore, which you could fix with make depend.

@AltGr
Copy link
Member Author

AltGr commented Feb 10, 2021

Indeed @gasche, updated; sorry for the lag.

It's actually even simpler this way!

Note that one small change in the interface was required: the function
Toploop.eval_address could raise a `Symtable.Error` for undefined globals. Since
that wouldn't make sense for the native toplevel, we define a specific exception
for this purpose. Hopefully no one was relying on this at so low-level.
@ghost ghost merged commit 95a4963 into ocaml:trunk Feb 11, 2021
garrigue pushed a commit to garrigue/ocaml that referenced this pull request Mar 3, 2021
…0187)

It's actually even simpler this way!

Note that one small change in the interface was required: the function
Toploop.eval_address could raise a `Symtable.Error` for undefined globals. Since
that wouldn't make sense for the native toplevel, we define a specific exception
for this purpose. Hopefully no one was relying on this at so low-level.
smuenzel pushed a commit to smuenzel/ocaml that referenced this pull request Mar 30, 2021
…0187)

It's actually even simpler this way!

Note that one small change in the interface was required: the function
Toploop.eval_address could raise a `Symtable.Error` for undefined globals. Since
that wouldn't make sense for the native toplevel, we define a specific exception
for this purpose. Hopefully no one was relying on this at so low-level.
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants