This is a multi-part message in MIME format.

------=_NextPart_000_0008_01C3C3F6.9BCF4890
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Is there anyway to get a class constructor to init my class wide static =
variables?

- Mike
------=_NextPart_000_0008_01C3C3F6.9BCF4890
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.3790.94" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Is there anyway to get a class =
constructor to init=20
my class wide static variables?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>- Mike</FONT></DIV></BODY></HTML>

------=_NextPart_000_0008_01C3C3F6.9BCF4890--

Re: Class Constuctor by David

David
Tue Dec 16 18:55:20 CST 2003


"Mike Malone" <mikemalone@REMOVE_CAPSconsultant.com> wrote in
message news:%23zgSJFDxDHA.2676@tk2msftngp13.phx.gbl...
Is there anyway to get a class constructor to init my class wide
static variables?

- Mike



Re: Class Constuctor by Frank

Frank
Tue Dec 16 20:11:54 CST 2003

Sorry, there is no way, AFAIK. Static variables, global or class member,
must be initialized at the global/namespace level.

--
Frank

"David Webber" <dave@musical.demon.co.uk> wrote in message
news:eYo%236hDxDHA.2448@TK2MSFTNGP12.phx.gbl...
>
> "Mike Malone" <mikemalone@REMOVE_CAPSconsultant.com> wrote in
> message news:%23zgSJFDxDHA.2676@tk2msftngp13.phx.gbl...
> Is there anyway to get a class constructor to init my class wide
> static variables?
>
> - Mike
>
>



Re: Class Constuctor by Ken

Ken
Wed Dec 17 01:04:09 CST 2003

You can, however, assign them to the result of a function call, which (as long
as the class being initialized is copy constructible) should let you do most
of what a class constructor would.

Ken

"Frank Hickman" <fhickman_nosp@m_noblesoft.com> wrote in message
news:Gr-dnfwjf6D3JkKiRVn-jg@comcast.com...
> Sorry, there is no way, AFAIK. Static variables, global or class member,
> must be initialized at the global/namespace level.
>
> > "Mike Malone" <mikemalone@REMOVE_CAPSconsultant.com> wrote in
> > message news:%23zgSJFDxDHA.2676@tk2msftngp13.phx.gbl...
> > Is there anyway to get a class constructor to init my class wide
> > static variables?