-
Notifications
You must be signed in to change notification settings - Fork 17
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
Accessing storage via Pointer #7
Comments
After a bit of elaboration on Gitter, we decided to not expose it. Leaving the issue open for further discussion. |
It's no more possible with current implementation (see #25) |
I'm thinking if something like this would be feasible: struct FatPointer<T> {
pub storage: Arc<spin::Mutex<Storage<T>>,
pub pointer: Pointer<T>,
} With this, we could have helper methods (even |
Do we really need it? |
As a casual observer (I'm planning on using Froggy at a later date), I mostly take issue with the name. I'd replace it with That said, I think that if people use these, there's going to be a lot of wasted time dealing with deadlocks. |
yeah, I agree completely. Just don't want to take the idea off the table just yet. See, the (original) promise of Froggy was that you can work with it as having a regular OOP program. Forcing the user to always have |
At this moment there is no way to access Storage from Pointer to that Storage, despite Storage is still in memory.
For example:
I suggest new method for Pointer, that will return Storage pointed by it
The text was updated successfully, but these errors were encountered: