digitalmars.D.announce - 99 bottles of compile-time beer
- Don Clugston <dac nospam.com.au> Aug 11 2006
- "Lionello Lunesu" <lio lunesu.remove.com> Aug 11 2006
- Walter Bright <newshound digitalmars.com> Aug 11 2006
- Fredrik Olsson <peylow gmail.com> Aug 11 2006
- Walter Bright <newshound digitalmars.com> Aug 11 2006
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
Excellent! This example serves as a pretty good documentation for D templates ; ) L.
Aug 11 2006
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
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
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









"Lionello Lunesu" <lio lunesu.remove.com> 