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

Implement method call semantics #23

Closed
katsaii opened this issue Nov 13, 2022 · 1 comment
Closed

Implement method call semantics #23

katsaii opened this issue Nov 13, 2022 · 1 comment
Labels
enhancement New feature or request high priority Important

Comments

@katsaii
Copy link
Owner

katsaii commented Nov 13, 2022

Consider the following definition:

let bunny = {
  n : 0,
  speak : fun() {
    self.n = it + 1
    "purr"
  },
}

The line bunny.speak() should run the speak function in the scope of the bunny struct.

@katsaii katsaii added enhancement New feature or request high priority Important labels Nov 13, 2022
@katsaii
Copy link
Owner Author

katsaii commented Nov 29, 2022

Will appear in version 2.2.0.

@katsaii katsaii closed this as completed Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request high priority Important
Projects
No open projects
Status: Done
Development

No branches or pull requests

1 participant