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

Swap opcode #35

Merged
merged 1 commit into from
May 2, 2019
Merged

Swap opcode #35

merged 1 commit into from
May 2, 2019

Conversation

tk-codes
Copy link
Collaborator

@tk-codes tk-codes commented May 1, 2019

Resolves #34.
Swap opcode is required for multiple struct field assignment with a function call.

                struct Person {
	 		int balance
			bool isValid
		}

		function (int, bool) test() {
			Person p = new Person()
			p.balance, p.isValid = test2()
			
			return p.balance, p.isValid
		}

		function (int, bool) test2() {
			return 100, true
		}

See Lazo bazo-blockchain/lazo#63 for usage.

@tk-codes tk-codes requested a review from skas102 May 1, 2019 19:41
@skas102 skas102 merged commit 188bf9e into master May 2, 2019
@skas102 skas102 deleted the feature/swap branch May 2, 2019 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Swap opcode
2 participants