Path: 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 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.