Are the following data type allocations analagous?
- by byte
I'm very interested in languages and their underpinnings, and I'd like to pose this question to the community. Are the following analagous to eachother in these languages?
C#
Foo bar = default(Foo); //alloc
bar = new Foo(); //init
VB.NET
Dim bar As Foo = Nothing 'alloc
bar = New Foo() 'init
Objective-C
Foo* bar = [Foo alloc]; //alloc
bar = [bar init]; //init