-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a rendezvous mechanism for reflection functions
This adds a reflection mechanism for the various reflection functions defined by Base. These functions are mostly interactive affordances and for ease of Compiler development, it tends to be important that these reflect the user's expectation of what the compiler is. This is currently the case using the existing `Revise.track(Core.Compiler)` workflow, because it runs in the latest world-age, not the inference world. This commit adds a special binding that if present in `Main` (because it was imported by a `using Compiler`) will switch the compiler used for reflection to whatever the binding points to. In this way, we can replace the old `using Revise; Revise.track(Core.Compiler)` workflow by `using Revise, Compiler` without additional headache.
- Loading branch information
Showing
4 changed files
with
61 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters