Pop quiz: Passing objects in Java is:
-
-
C++ has it. Passing pointers. In Java the ptr is implicit (you can distinguish further, but they're both PRBV)
1 reply 0 retweets 0 likes -
Replying to @ManishEarth @glaebhoerl
Like, one very common problem I've seen is: Kid learns PBV/PBR, with ints and stuff.
1 reply 0 retweets 0 likes -
Replying to @ManishEarth @glaebhoerl
then learns pointers. Tries to fit pointers into current model of PBV/PBR.
1 reply 0 retweets 0 likes -
Replying to @ManishEarth @glaebhoerl
Often concludes that pointers are just PBR (the difference is subtle enough to be missed)
1 reply 0 retweets 0 likes -
Replying to @ManishEarth @glaebhoerl
has a super hard time dealing with pointers everywhere since they're not just fn args.
1 reply 0 retweets 0 likes -
Replying to @ManishEarth @glaebhoerl
also gets confused between the T& PBR and &x ref syntax because they both deal with "pass by ref"
2 replies 0 retweets 0 likes
Ruby's been keeping me up so I'm sleep deprived but I keep thinking you mean http://images.mentalfloss.com/sites/default/files/styles/article_640x430/public/screen_shot_2013-04-01_at_3.41.13_pm.png …
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.