Re: "static" question

From: Fraser Ross (fraserATmembers.v21.co.unitedkingdom)
Date: 04/19/04


Date: Mon, 19 Apr 2004 20:00:04 +0100

Thats wrong. A static object of a class in a function will be constructed
only with the first call of the function and destructed only when the
program terminates although it might not be destructed with some abnormal
terminations.

Fraser.

"Alf P. Steinbach"
> for a function it is a single variable instead of
> an automatic variable created & destroyed for each call of the function.