www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Guys, what have I done xD

reply "Borislav Kosharov" <bosak gmail.com> writes:
I played around and used D's flexible syntax and I managed to 
create this:
https://gist.github.com/nikibobi/6169035

It prints the song's lyrics and I have used aliases, templates, 
constants, the fact that f(a) == a.f() == a.f and many more small 
things. I tough that it was funny and strange and I decided to 
show it to you. Also if you change the enum Word it changes 
everything :D
Aug 07 2013
next sibling parent "Brad Anderson" <eco gnuk.net> writes:
On Wednesday, 7 August 2013 at 19:52:13 UTC, Borislav Kosharov 
wrote:
 I played around and used D's flexible syntax and I managed to 
 create this:
 https://gist.github.com/nikibobi/6169035

 It prints the song's lyrics and I have used aliases, templates, 
 constants, the fact that f(a) == a.f() == a.f and many more 
 small things. I tough that it was funny and strange and I 
 decided to show it to you. Also if you change the enum Word it 
 changes everything :D

That's amazing.
Aug 07 2013
prev sibling next sibling parent "Borislav Kosharov" <bosak gmail.com> writes:
On Wednesday, 7 August 2013 at 19:54:32 UTC, Brad Anderson wrote:
 On Wednesday, 7 August 2013 at 19:52:13 UTC, Borislav Kosharov 
 wrote:
 I played around and used D's flexible syntax and I managed to 
 create this:
 https://gist.github.com/nikibobi/6169035

 It prints the song's lyrics and I have used aliases, 
 templates, constants, the fact that f(a) == a.f() == a.f and 
 many more small things. I tough that it was funny and strange 
 and I decided to show it to you. Also if you change the enum 
 Word it changes everything :D

That's amazing.

Thanks, but I was just bored :D I normally don't write code like that :D
Aug 07 2013
prev sibling next sibling parent "Brad Anderson" <eco gnuk.net> writes:
On Wednesday, 7 August 2013 at 19:55:48 UTC, Borislav Kosharov 
wrote:
 On Wednesday, 7 August 2013 at 19:54:32 UTC, Brad Anderson 
 wrote:
 On Wednesday, 7 August 2013 at 19:52:13 UTC, Borislav Kosharov 
 wrote:
 I played around and used D's flexible syntax and I managed to 
 create this:
 https://gist.github.com/nikibobi/6169035

 It prints the song's lyrics and I have used aliases, 
 templates, constants, the fact that f(a) == a.f() == a.f and 
 many more small things. I tough that it was funny and strange 
 and I decided to show it to you. Also if you change the enum 
 Word it changes everything :D

That's amazing.

Thanks, but I was just bored :D I normally don't write code like that :D

Now just make it make use of opDispatch in some way.
Aug 07 2013
prev sibling next sibling parent "Meta" <jared771 gmail.com> writes:
On Wednesday, 7 August 2013 at 19:52:13 UTC, Borislav Kosharov 
wrote:
 I played around and used D's flexible syntax and I managed to 
 create this:
 https://gist.github.com/nikibobi/6169035

 It prints the song's lyrics and I have used aliases, templates, 
 constants, the fact that f(a) == a.f() == a.f and many more 
 small things. I tough that it was funny and strange and I 
 decided to show it to you. Also if you change the enum Word it 
 changes everything :D

That's a cool trick. You could've used a better song, though.
Aug 07 2013
prev sibling next sibling parent "H. S. Teoh" <hsteoh quickfur.ath.cx> writes:
On Wed, Aug 07, 2013 at 09:52:10PM +0200, Borislav Kosharov wrote:
 I played around and used D's flexible syntax and I managed to create
 this:
 https://gist.github.com/nikibobi/6169035
 
 It prints the song's lyrics and I have used aliases, templates,
 constants, the fact that f(a) == a.f() == a.f and many more small
 things. I tough that it was funny and strange and I decided to show
 it to you. Also if you change the enum Word it changes everything :D

Oh dear. Is this the beginning of the IODCC? ;-) T -- You are only young once, but you can stay immature indefinitely. -- azephrahel
Aug 07 2013
prev sibling next sibling parent "Borislav Kosharov" <boby_dsm abv.bg> writes:
On Saturday, 10 August 2013 at 18:28:26 UTC, H. S. Teoh wrote:
 On Wed, Aug 07, 2013 at 09:52:10PM +0200, Borislav Kosharov 
 wrote:
 I played around and used D's flexible syntax and I managed to 
 create
 this:
 https://gist.github.com/nikibobi/6169035
 
 It prints the song's lyrics and I have used aliases, templates,
 constants, the fact that f(a) == a.f() == a.f and many more 
 small
 things. I tough that it was funny and strange and I decided to 
 show
 it to you. Also if you change the enum Word it changes 
 everything :D

Oh dear. Is this the beginning of the IODCC? ;-) T

What is IODCC?
Aug 17 2013
prev sibling next sibling parent "H. S. Teoh" <hsteoh quickfur.ath.cx> writes:
On Sat, Aug 17, 2013 at 03:47:06PM +0200, Borislav Kosharov wrote:
 On Saturday, 10 August 2013 at 18:28:26 UTC, H. S. Teoh wrote:
On Wed, Aug 07, 2013 at 09:52:10PM +0200, Borislav Kosharov wrote:
I played around and used D's flexible syntax and I managed to create
this:
https://gist.github.com/nikibobi/6169035

It prints the song's lyrics and I have used aliases, templates,
constants, the fact that f(a) == a.f() == a.f and many more small
things. I tough that it was funny and strange and I decided to show
it to you. Also if you change the enum Word it changes everything :D

Oh dear. Is this the beginning of the IODCC? ;-) T

What is IODCC?

The International Obfuscated D Code Contest. It's a pun on the IOCCC (International Obfuscated C Code Contest -- see ioccc.org), which is a contest where you try to write the most unreadable, unmaintainable, and horrible C code you can. :) T -- The richest man is not he who has the most, but he who needs the least.
Aug 17 2013
prev sibling parent Iain Buclaw <ibuclaw ubuntu.com> writes:
On 7 August 2013 20:52, Borislav Kosharov <bosak gmail.com> wrote:
 I played around and used D's flexible syntax and I managed to create this:
 https://gist.github.com/nikibobi/6169035

 It prints the song's lyrics and I have used aliases, templates, constants,
 the fact that f(a) == a.f() == a.f and many more small things. I tough that
 it was funny and strange and I decided to show it to you. Also if you change
 the enum Word it changes everything :D

One is not amused. -- Iain Buclaw *(p < e ? p++ : p) = (c & 0x0f) + '0';
Aug 17 2013