Linked by Thom Holwerda on Tue 28th Aug 2012 19:20 UTC, submitted by MOS6510
General Development "Coming from a background in higher-level languages like Ruby, Scheme, or Haskell, learning C can be challenging. In addition to having to wrestle with C's lower-level features like manual memory management and pointers, you have to make do without a REPL. Once you get used to exploratory programming in a REPL, having to deal with the write-compile-run loop is a bit of a bummer. It occurred to me recently that I could use gdb as a pseudo-REPL for C. I've been experimenting with using gdb as a tool for learning C, rather than merely debugging C, and it's a lot of fun. My goal in this post is to show you that gdb is a great tool for learning C. I'll introduce you to a few of my favorite gdb commands, and then I'll demonstrate how you can use gdb to understand a notoriously tricky part of C: the difference between arrays and pointers."
Thread beginning with comment 532967
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[5]: Not REPL
by kwan_e on Wed 29th Aug 2012 11:57 UTC in reply to "RE[4]: Not REPL"
kwan_e
Member since:
2007-02-18

If you can't type C code in it and have it evaluated then it isn't a REPL. It is as simple as that.


That's why he didn't call it an REPL. He called it a PSEUDO REPL. Are you retarded?

PSEUDO.
PSEUDO.
PSEUDO.

Reply Parent Score: 3

RE[6]: Not REPL
by MOS6510 on Wed 29th Aug 2012 12:04 in reply to "RE[5]: Not REPL"
MOS6510 Member since:
2011-05-12

Call it what you want, it's still not REPL.

(okay, just trolling)

Reply Parent Score: 2