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

CGAME

Name: Anonymous 2011-12-29 13:41

Are any games written in pure C? Even K&R mentions that C lends itself to graphics. Why are they all written in C++ if C is so much better?

Name: Anonymous 2011-12-29 19:14

>>18
(defgeneric animal-attack (self target))

(defmethod animal-attack ((self water-dragon) target) (...))
(defmethod animal-attack ((self snake) target) (...))
(defmethod animal-attack ((self falcon) target) (...))
(defmethod animal-attack ((self falcon) (target snake)) (...)) ; dispatch on both types


Also, subclassing.

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