Language Self
Date: | 04/20/05 |
Author: | David Eddyshaw |
URL: | n/a |
Comments: | 0 |
Info: | http://research.com.sun/self/ |
Score: | (3.65 in 236 votes) |
"99 Bottles of Beer in Self (http://research.com.sun/self/) by David Eddyshaw, david@jeddyshaw.freeserve.co.uk " traits integer _AddSlots: (| bottles = ((= 0 ifTrue: ['No more bottles'] False: [= 1 ifTrue: ['1 bottle'] False: [asString, ' bottles']]), ' of beer') |). 99 downTo: 1 Do: [ | :n | (n bottles, ' on the wall;\n', n bottles, '.\nTake one down; pass it around:\n', (n - 1) bottles, ' on the wall.\n\n') print. ].
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