Hey, thanks, Derrik.
I don't mess with Linux much (kind of an Illumos junkie by trade ;), but
I bet gcc would. I did out of curiosity do it with the Macintosh cc (Apple
LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)) and it throws
warnings about our not type-defining functions because you're apparently
supposed to do this explicitly these days, but it dutifully goes on to
assume int and compiles our test K&R stuff mostly fine. It does
unfortunately balk pretty badly at the naked returns we initially had,
though. Wish it didn't because it strikes me as being beautifully simple..
thx again for the encouragement!
jake
On Wed, Dec 31, 2014 at 1:02 AM, Derrik Walker v2.0 <dwalker(a)doomd.net>
wrote:
On Wed, 2014-12-31 at 00:44 -0500, Jacob Ritorto
wrote:
P.S. if anyone's bored enough, you can check out what we're up to at
https://github.com/srphtygr/dhb. I'm trying to get my 11yo kid to
spend a little time programming rather than just playing video games
when he's near a computer. He'a actually getting through this stuff
and is honestly interested when he understands it and sees it work --
and he even spotted a bug before me this afternoon! Feel free to
raise issues, pull requests, etc. if you like -- I'm putting him
through the git committing and pair programming paces, so outside
interaction would be kinda fun :)
P.P.S. We're actually using 2.11bsd after all..
I'm curious, will gcc on a modern Linux system compile K&R c?
Maybe when I get a little time, I might try to see if I can compile it
on a modern Fedora 21 system with gcc.
BTW: Great job introducing him to such a classic environment. A few
years ago, my now 18 year old had expressed some interest in graphics
programming and was in awe over an SGI O2 I had at the time, so I got
him an Indy. He played around with a bit of programming, but
unfortunately, he lost interest.
- Derrik
_______________________________________________
TUHS mailing list
TUHS(a)minnie.tuhs.org
https://minnie.tuhs.org/mailman/listinfo/tuhs