Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Also very much enjoying the book so far - just want to +1 this - I found this comment whilst googling to satisfy my confusion around the "in-between value" part. I think this might be an area of confusion for people without a robust understanding of pointers. Perhaps a few diagrams in this areas would help explain the difference between what is happening in these scenarios:

element := array[10] 

element_pointer := &element 

element_pointer2:= &array[10]

I've also been experimenting and think it's connected with copying, but haven't fully grokked it. I'm sure I will have figured this out soon and forgotten why I was confused, but just wanted to note it in case there is a way to make this clearer - or perhaps the confusion is a necessary part of learning...

(+1)

Thank you!

In version 1.5, which I uploaded yesterday, I have changed these formulations a bit. Based on the feedback I got, I try to use the word “copy” instead of “in-between value”. In hindsight that is an easier way to talk about it. Please check it out and let me know if it was an improvement or not.

But like you say, perhaps a diagram would be good.

Have a nice day!