Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

Language DotLisp

Date:07/01/05
Author:Mark Hurd
URL:http://www.ozemail.com.au/~markhurd/
Comments:1
Info:http://dotlisp.sourceforge.net/
Score: (3.01 in 104 votes)
(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

Alternative Versions

Comments

>>  GretchenArnold32 said on 08/27/10 22:58:02

GretchenArnold32 I had a desire to begin my own commerce, however I did not have got enough amount of cash to do it. Thank heaven my friend recommended to use the <a href="http://bestfinance-blog.com/topics/mortgage-loans">mortgage loans</a>. Thus I took the car loan and made real my dream.

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!

Name:

eMail:

URL:

Security Code:
  
Comment: