the problem is the b variable in BinstanceTest. When you instantiate a BinstanceTest, a second BinstanceTest is instantiated to initialize the b variable which instantiates a BinstanceTest to initialize the b variable which ...
First operand is an array of object and second operand is the object itself.
MyClass obj; MyClass arrObj[];
You can not compare obj with arrObj. However comparison between "arrObj[someIndexHere]" and "obj" would be legal. [ August 23, 2007: Message edited by: Akhilesh Trivedi ]
the problem is the b variable in BinstanceTest. When you instantiate a BinstanceTest, a second BinstanceTest is instantiated to initialize the b variable which instantiates a BinstanceTest to initialize the b variable which ...
That was really deadly manfred, good catch.
Samura! Good practice would be to have member variable declarations in the class, and initializations at the place/constructor/methods where they are necessary.
aslika bahini
Ranch Hand
Joined: Mar 03, 2007
Posts: 111
posted
0
Thanks Akhilesh!
regards samura
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.