Live data from Hacker News

Amiga C Tutorial (2022)

pjhutchison.org

11–20 of 39 posts

Re: Amiga C Tutorial (2022)

#13
post #9
post #5

Is it me or is there a bug with pointers on the bottom of http://www.pjhutchison.org/tutorial/pointers.html ? The author uses this code to dereference a pointer to a structure member: engine = *myvehicle->enginesize; Unless I've forgotten 30 years of C experience, I'd expect this to be: engine = myvehicle->enginesize; But it could be some peculiarity in the Amiga compiler. Now I just wish I had the money to buy an Am…

Agree, it's broken. It's also assigning string literals to char array struct members in a non-initializing context, which doesn't work. As someone trying to piece together C knowledge from various b0rk3n tutorials (as a pre-Internet teenager in the early 90s) it's pretty provocative. Luckily I healed and levelled up since.

Reminds me a bit of the "Mastering C Pointers" book that was popular in the early 90s and contained a multitude of outright errors.

https://wozniak.ca/blog/2018/06/25/1/index.html

Re: Amiga C Tutorial (2022)

#16
post #10

Out of curiosity, why would one want to learn programming for AmigaOS today?

It is a complex, non-trivial operating system which has its merits in terms of design and prudent use of resources. All of this is well-documented and understandable. You can learn how everything works, top to bottom and back again, which is a feature modern operating systems tend to have lost over the years. I would also argue that it is a humane design, meant to be understood.

Re: Amiga C Tutorial (2022)

#20
post #5

Is it me or is there a bug with pointers on the bottom of http://www.pjhutchison.org/tutorial/pointers.html ? The author uses this code to dereference a pointer to a structure member: engine = *myvehicle->enginesize; Unless I've forgotten 30 years of C experience, I'd expect this to be: engine = myvehicle->enginesize; But it could be some peculiarity in the Amiga compiler. Now I just wish I had the money to buy an Am…

You might have the money to buy an Amiga now?

https://retrogames.biz/products/thea500-mini/

Fact is, with a little LCD and a nice keyboard, one could put the Amiga in the 'loo and have a fair bash at the old school while pushing one out, eh .. ?

/oric_telestrat_forever

Post reply on HN