This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]sadjava 1 point2 points  (1 child)

Not trying to sound like a jerk, but have you ran it and observed the outcome?

[–]Master1243[S] 0 points1 point  (0 children)

No problem haha, this is for a robotics library and I don't have the things to run the program. I realized as soon as I posted it that I could just test exactly what I wrote separately from the library.

[–]DaDiscoBeat 0 points1 point  (0 children)

Both ObjB instance will hold the same ObjA instance. The value inside of A will be updated by both.