May 16, 2013 at 1:28pm May 16, 2013 at 1:28pm UTC
Confusion resolution: use the order the constructors end, not the order the constructors start.
May 16, 2013 at 8:55pm May 16, 2013 at 8:55pm UTC
Oh yea T's constructor must have been called, before, otherwise it wouldn't work.
@LB
Why?
May 16, 2013 at 9:44pm May 16, 2013 at 9:44pm UTC
Because A's constructor does start before T's, but T's ends before A's
May 16, 2013 at 10:14pm May 16, 2013 at 10:14pm UTC
But he said Ts start before. But yea T's ends before A's. But how is this supposed to help me?
Im so clueless...
May 16, 2013 at 10:25pm May 16, 2013 at 10:25pm UTC
A's ctor starts before T's because as soon as it starts it calls T's ctor.
May 17, 2013 at 12:17am May 17, 2013 at 12:17am UTC
Ooo ok, I thought it was the opposite cause technically it didnt start cause no statements from it were really executed. Alright thanks guys, I got it I shall use the first person's reply and cire's reply as the reason. Thanks!