You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to be able to allocate an object into a region (if it has mutable state).
new Foo(x, y) in {r}
or maybe
interface Foo {
def op(): Unit
}
class Bar {r: Region} implement Foo {
var field in r = 4
def op() = {
r = r + 1;
this.helper() // it should be possible to invoke methods on the same object
}
// NOT part of the interface
def helper() = println(r)
}
new Bar {global}
In general, we need to rethink / redesign the "object-system" anyways. Some aspects are:
See also
The text was updated successfully, but these errors were encountered: