Welcome to MSDN Blogs Sign in | Join | Help

January 2008 - Posts

Variable Parameter passing in C#

Sometime back I posted about variable parameters in Ruby . C# also supports methods that accepts variable number of arguments (e.g. Console.Writeline). In this post I'll try to cover what happens in the background. This is a long one and so bear with
Posted by abhinaba | 2 Comments
Filed under: ,

The differences between int[,] and int[][]

A friend asked me the differences between the two. Here goes the answer int[,] This represents a two dimensional rectangular array. Let's take the following array definition int [,] ar = new int [3, 3] { { 0, 1, 2}, { 3, 4, 5}, { 6, 7, 8}}; The array
Posted by abhinaba | 3 Comments
Filed under: ,

Expanding and compressing in Ruby Method calls

One of the things I didn't like in Ruby at all is the support for method overloading. You have no ways to support it in a straight forward way other than to define a single method that takes a variable number of arguments. def foo(*f) f.each { |a| puts
Posted by abhinaba | 1 Comments
Filed under: ,

Learn a new dynamic or functional language every year

Specially for folks using the C* languages (C/C++/C#) and Java it's very important to learn dynamic/functional languages. There are three reasons. With time we will see more and more high level dynamic languages and at the same time many languages like
Posted by abhinaba | 2 Comments
Filed under: ,
 
Page view tracker