www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - 99 bottles of compile-time beer

reply Don Clugston <dac nospam.com.au> writes:
My D metaprogramming version of this code has just been posted. Useless, 
but fun. Enjoy.

http://www.99-bottles-of-beer.net/language-d-1212.html

Compile with: dmd -c -o- beer.d

(Compare with the highly-rated C/C++ preprocessor version, which isn't 
even correct (it gets the capitalisation of 'no more' wrong in the 
second last verse)).
Aug 11 2006
next sibling parent "Lionello Lunesu" <lio lunesu.remove.com> writes:
Excellent! This example serves as a pretty good documentation for D 
templates ; )

L. 
Aug 11 2006
prev sibling next sibling parent Walter Bright <newshound digitalmars.com> writes:
Don Clugston wrote:
 My D metaprogramming version of this code has just been posted. Useless, 
 but fun. Enjoy.
 
 http://www.99-bottles-of-beer.net/language-d-1212.html
 
 Compile with: dmd -c -o- beer.d
 
 (Compare with the highly-rated C/C++ preprocessor version, which isn't 
 even correct (it gets the capitalisation of 'no more' wrong in the 
 second last verse)).
This is totally cool. Thanks!
Aug 11 2006
prev sibling parent reply Fredrik Olsson <peylow gmail.com> writes:
Don Clugston skrev:
 My D metaprogramming version of this code has just been posted. Useless, 
 but fun. Enjoy.
Respect! And as Lionello said, this is a good example to learn from as well. So I can not agree on the "useless" part. // Fredrik Olsson
Aug 11 2006
parent Walter Bright <newshound digitalmars.com> writes:
Fredrik Olsson wrote:
 Don Clugston skrev:
 My D metaprogramming version of this code has just been posted. 
 Useless, but fun. Enjoy.
Respect! And as Lionello said, this is a good example to learn from as well. So I can not agree on the "useless" part.
I agree. It makes a nice presentation piece.
Aug 11 2006