Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!lupine!rfg From: rfg@NCD.COM (Ron Guilmette) Newsgroups: comp.lang.c++ Subject: Re: porting tips for c++ Message-ID: <1198@lupine.NCD.COM> Date: 15 Aug 90 23:18:23 GMT References: <943@tcs.tcs.com> <14817@csli.Stanford.EDU> Organization: Network Computing Devices, Inc., Mt. View, CA Lines: 18 In article pcg@cs.aber.ac.uk (Piercarlo Grandi) writes: > >This is not allowed. Technically a cast is (like) an unary operator (in >C as in C++, actually in C++ even more), and its result is not an >lvalue,... Just for the sake of clarity, I though I should point out that this is *not* a hard and fast rule. E&S notes (on page 69): "The result of a cast to a reference type is an lvalue; the results of other casts are not." -- // 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.