Geeks With Blogs
Adventures of a Setup Developer my musings about setups and other things in my life
I was recently working with Reflection and Boo and thought this was funny. Hey.. nobody told life is simple right. So, here it goes. :-)

i as int
i=i.GetType().GetMethod("Parse",[typeof(string)].ToArray(typeof(System.Type))).Invoke(null,["42"].ToArray())
print "Answer to the question of life, universe and everything is ", i Posted on Tuesday, January 24, 2006 7:30 AM Personal , Open Source | Back to top


Comments on this post: Printing 42 - A not so straightforward Boo way

# re: Printing 42 - A not so straightforward Boo way
Requesting Gravatar...
Hmmm, now all you have to do is write a snippet that randomly generates refactors every day code into Rube Goldberg statements.
Left by Christopher Painter on Mar 09, 2006 5:44 AM

# re: Printing 42 - A not so straightforward Boo way
Requesting Gravatar...
Convoluted :P
Left by priyananda on May 29, 2006 1:36 PM

Your comment:
 (will show your gravatar)


Copyright © Vagmi Mudumbai | Powered by: GeeksWithBlogs.net