;; Suppose I want a message like "Monkey hits you with two forks and kills you
;; with them."
;; Right now my MESSAGE just calls FORMAT to do the dirty work.
(message "~a hits ~a with ~a and kills ~a with ~a."
;; How I think it'd look with OUT: similar in verbosity to using FORMAT, and
;; in my opinion less legible - I don't like the control original string being sliced
;; across the function call.
(message (:de monst1) " hits " (:de monst2)
" with " (:de weapon)
" and kills " (:pr monst2)
" with " (:pr weapon))
;; What I find most elegant (the numbers can translate to a jump directive).
(message "%d hits %d with %d and kills %2p with %3p." monst1 monst2 weapon)
Users browsing this forum: aidlt, Google [Bot], Yahoo [Bot] and 4 guests