Skip to content
This repository has been archived by the owner on Feb 3, 2020. It is now read-only.

All Variables Are Mutable References #67

Open
sunjay opened this issue Apr 11, 2017 · 0 comments
Open

All Variables Are Mutable References #67

sunjay opened this issue Apr 11, 2017 · 0 comments

Comments

@sunjay
Copy link
Owner

sunjay commented Apr 11, 2017

This is an intentional/planned bug.

In order to make the MVP implementation simpler, all variables are essentially mutable references when passed into functions. This isn't explicit at all and is instead some compiler magic that accomplishes everything behind the scenes. This is okay enough in the short term since the only functions are a few compiler functions, but references (#48) need to be properly implemented as soon as possible.

No mutation is currently protected.

Eventually, we want primitives to have copy semantics and structs to have move semantics (unless they implement Copy).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant