-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- CustomType now has a single function: return a reference to the Muse `Type` definition for this Rust type. - Type utilizes a vtable approach and offers helpers that can be used to do things like fall back to a member field (Exception uses this to fall back to the value implementations). This also provides a way to use a built-in vtable and create a new type with your own vtable instead, to allow creating a custom string/list/map type with new functions. - The default Vm now loads a core library that defines two types currently. Using a `Call` instruction on a Symbol now tries to resolve the symbol, and resolve() now accepts a fully qualified path: "$.path". E.g. map is "$.core.Map". Some of this is just barely flushed out, but it all passes testing (I think).
- Loading branch information
Showing
11 changed files
with
2,055 additions
and
881 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1828,8 +1828,6 @@ pub enum UnaryKind { | |
Copy, | ||
Resolve, | ||
Jump, | ||
NewMap, | ||
NewList, | ||
SetExceptionHandler, | ||
} | ||
|
||
|
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
Oops, something went wrong.