Closed
Description
There was one feature of the @-pointer that has not been fixed since it was removed.
If you wanted to pass a struct around by referring to it as a trait, you could do @SomeTrait
.
~-ptrs aren't always suitable for this because you may need more than one reference to the struct underneath the trait.
&-ptrs aren't suitable for this... well, because they aren't. :P
Obviously Rc, which is supposed to be the replacement for '@' doesn't work because you'd need another pointer inside it anyway.
Is there some way that this functionality can be restored?
Metadata
Metadata
Assignees
Labels
No labels