Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Postdecrement is inefficient and dangerous

Name: Anonymous 2009-10-11 20:02

http://www.codeguru.com/forum/showthread.php?t=231052

(If this is true, why is the language not named ++C? I don't understand.)

Name: 19 2009-10-12 13:08

>>21
No, I'm not translating >>18's anything. OP posted some crap about post increment/decrement being dangerous. I posted the versions of post/pre incrementation in lisp, pointing out the infallability of these forms, thus, thread over.

If I were to translate >>18, first I'd have to give my own meaning to ++i++ since it's undefined behavior in both C and that other language; secondly, if we assume it to be what you provided, then I'd write the code as:

(prog1 #1=(incf x) #1#)

Or

(1- (incf x 2))

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List