🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #326

Re: Scope of static member initializers

#326
From: Ron Guilmette
Date: Sat, 04 Aug 1990 02:05
28 lines
1141 bytes
In article <1990Aug2.214222.14165@agate.berkeley.edu> lippin@math.berkeley.edu writes:
>const int bounded::maxp=3;
>
>const bounded bounded::min=0;
>const bounded bounded::max=maxp;
>
>My CFront declares the last line invalid, saying that maxp is not
>defined.  But now the problem is not so clear-cut to me; perhaps this
>implementation is wrong?

No. RTFM, then try:

	const bounded bounded::max=bounded::maxp;

+
+
+
+
+
+
+
+

-- 
// Ron Guilmette
// C++ Entomologist
// Internet: rfg@ncd.com      uucp: ...uunet!lupine!rfg
// Motto:  If it sticks, force it.  If it breaks, it needed replacing anyway.
Technical Details
Message-ID: <1072@lupine.NCD.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!sdd.hp.com!zaphod.mps.ohio-state.edu!wuarchive!uunet!lupine!rfg
References: <1990Aug1.030632.2273@agate.berkeley.edu> <10603@batcomputer.tn.cornell.edu> <1990Aug2.214222.14165@agate.berkeley.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!sdd.hp.com!zaphod.mps.ohio-state.edu!wuarchive!uunet!lupine!rfg
From: rfg@NCD.COM (Ron Guilmette)
Newsgroups: comp.std.c++
Subject: Re: Scope of static member initializers
Message-ID: <1072@lupine.NCD.COM>
Date: 4 Aug 90 02:05:47 GMT
References: <1990Aug1.030632.2273@agate.berkeley.edu> <10603@batcomputer.tn.cornell.edu> <1990Aug2.214222.14165@agate.berkeley.edu>
Organization: Network Computing Devices, Inc., Mt. View, CA
Lines: 28