We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This causes a segfault:
Foo: cover { pointer : Int* init: func { this pointer = gc_malloc(1024) } dispose: func { gc_free(this pointer) } } foo := Foo new() foo dispose()
This does not...
Foo: cover { pointer : Int* init: func { this pointer = gc_malloc(1024) gc_free(this pointer) } dispose: func { } } foo := Foo new() foo dispose()
And neither does this:
Foo: cover { pointer : Int* init: func { this pointer = gc_malloc(1024) this dispose() } dispose: func { gc_free(this pointer) } } foo := Foo new()
What's going on here?
The text was updated successfully, but these errors were encountered:
Argh, I needed init: func@ {. I've made that mistake a few times now... Maybe a warning would be nice, I don't know.
init: func@ {
Sorry, something went wrong.
A "modifying this in a by value cover call" would be nice, indeed
this
No branches or pull requests
This causes a segfault:
This does not...
And neither does this:
What's going on here?
The text was updated successfully, but these errors were encountered: