Language DotLisp
| Date: | 07/01/05 |
| Author: | Mark Hurd |
| URL: | http://www.ozemail.com.au/~markhurd/ |
| Comments: | 1 |
| Info: | http://dotlisp.sourceforge.net/ |
| Score: |
(def-macro (prnf f &rest r)
`(Console:WriteLine ~f (vector-of Object. ~@r)))
(for (i 99) (> i 0) (-- i)
(prnf "{0} bottle{1} of beer on the wall
{0} bottle{1} of beer
take {2} down and pass it around
{3} bottle{4} of beer on the wall\r\n"
i
(if (== i 1) "" "s")
(if (== i 1) "it" "one")
(if (== i 1) "no more" (- i 1))
(if (== i 2) "" "s")))
Download Source | Write Comment
Download Source | Write Comment
Add Comment
Please provide a value for the fields Name,
Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.
Please don't post large portions of code here! Use the form to submit new examples or updates instead!
Comments