DEV Community

Discussion on: What's wrong with this code?

Collapse
 
bgadrian profile image
Adrian B.G.

Not really, the "turkey" is a pointer to the turkey instance/value, so even if the turkey changes its state, the turkey pointer will remain constant, pointing to the same turkey.

Collapse
 
dance2die profile image
Sung M. Kim

I had this imagination that, the ๐Ÿฆƒ looks the same on the outside but cooked on the inside ๐Ÿ˜ƒ.

Collapse
 
dukemai profile image
dukemai

haha, it sounds reasonable :D

Collapse
 
adam_cyclones profile image
Adam Crockett ๐ŸŒ€

Still not edible, take it back for a re-rest ๐Ÿ˜‚