🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: When is the C++ standard going to be completed?

#8
From: Markku Sakkinen
Date: Thu, 29 Oct 1992 15:24
28 lines
1229 bytes
In article <10803@uqcspe.cs.uq.oz.au> warwick@cs.uq.oz.au writes:
> ...
>But with:
>
>	int a,b;
>
>	int& fb=foo[bar];
        ^^^^ oops!
>
>	fb.a=b;
>
>The secret is revealed that "a" is part of foo[bar], while "b" is the local.
>All without knowing what type foo[bar] is.
> ...

No, you certainly need to use exactly the type of foo[bar] to achieve
what you are trying above.  Thus:
	thing& fb = foo[bar];

----------------------------------------------------------------------
Markku Sakkinen (sakkinen@jytko.jyu.fi)
       SAKKINEN@FINJYU.bitnet (alternative network address)
Department of Computer Science and Information Systems
University of Jyvaskyla (a's with umlauts)
PL 35
SF-40351 Jyvaskyla (umlauts again)
Finland
----------------------------------------------------------------------
Technical Details
Message-ID: <1992Oct29.152418.17753@jyu.fi>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!news.funet.fi!network.jyu.fi!sakkinen
References: <1c2nkpINN2sk@ub.d.umn.edu> <10803@uqcspe.cs.uq.oz.au>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c++
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!news.funet.fi!network.jyu.fi!sakkinen
From: sakkinen@jyu.fi (Markku Sakkinen)
Subject: Re: When is the C++ standard going to be completed?
Message-ID: <1992Oct29.152418.17753@jyu.fi>
Organization: University of Jyvaskyla, Finland
References: <1c2nkpINN2sk@ub.d.umn.edu> <10803@uqcspe.cs.uq.oz.au>
Date: Thu, 29 Oct 1992 15:24:18 GMT
Lines: 28