(Unless this isn't Java or Python or some other everything-is-a-reference language, and you need to call StealGadgets(&skydiving_dutch, gadget_count), because you don't really want to copy a whole skydiver into your stack frame [edit: and if you did, you'd only be stealing copies of his stuff - the original skydiving_dutch would still have the same amount of stuff as you.)
--
"I'll tell you how all skydivers are judged, . They are judged by the laws of physics." - kkeenan
"You jump out, pull the string and either live or die. What's there to be good at?
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
I think the specifier of StealGadgets is dropping the ball on return values.
You should be able to call
mygadget_count += StealGadgets(skydiving_dutch, gadget_count);
(Unless this isn't Java or Python or some other everything-is-a-reference language, and you need to call StealGadgets(&skydiving_dutch, gadget_count), because you don't really want to copy a whole skydiver into your stack frame
"I'll tell you how all skydivers are judged, . They are judged by the laws of physics." - kkeenan
"You jump out, pull the string and either live or die. What's there to be good at?
Share this post
Link to post
Share on other sites