-
Notifications
You must be signed in to change notification settings - Fork 145
Conversation
It will require 2 opcodes for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps this will be more clear than Throw and easier to use.
Good job.
I don't like these |
/// <summary> | ||
/// It turns the vm state to FAULT immediately, but it can be caught. | ||
/// </summary> | ||
THROW = 0x3A, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0x39
@Tommo-L @erikzhang ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think THROW
is more close to TRY
and CATCH
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer this order of instructions:
THROW
// TRY - ENDF
ASSERT
ABORT
RET
close #299
0x37
to0x3A
.