Language Ferite
(Using closures.)
Date: | 09/25/06 |
Author: | Rowan Lewis |
URL: | http://pixelcarnage.net/ |
Comments: | 2 |
Info: | http://ferite.org/ |
Score: | ![]() |
uses "console"; number bottles = 99; boolean looping = true; object counter = closure { if (--bottles > 0) { return true; } else { return false; } }; while (looping) { Console.println("${bottles} bottles of beer on the wall,"); Console.println("${bottles} bottles of beer,"); Console.println("Take one down, pass it around,"); looping = counter.invoke(); Console.println("${bottles} bottles of beer on the wall."); }
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