Initializing a "contract" member variable.

FizpokFizpok Member Posts: 2
Say, I have contracts A and B.
I want to have
contract A
{
B b;

A(address addr) { b = B(addr); }
}

In other language, I would use
B b = null;
in declaration, to avoid double initialization, but it does not work in Solidity. So how do I declare a member variable and then initialize it by address?
Sign In or Register to comment.