Replies: 1 comment
-
Moved question to https://stackoverflow.com/questions/68960270/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have some code similar to this:
Calling
a[0]
works as expected.a[1]
fails withRuntimeError: Could not allocate weak reference!
, I assume because assigning an int object as nurse doesn't make sense.What is the recommended way for dealing with both indices while keeping the reference alive?
Beta Was this translation helpful? Give feedback.
All reactions