Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!pdn!tscs!tct!chip From: chip@tct.com (Chip Salzenberg) Newsgroups: comp.lang.c++ Subject: Re: Proposal: 'virtual' class members for C++ Message-ID: <28468F76.4A98@tct.com> Date: 31 May 91 18:01:26 GMT References: <675518012.34@sunbrk.FidoNet> Organization: Teltronics/TCT, Sarasota, FL Lines: 22 According to Struan.Judd@sunbrk.FidoNet.Org (Struan Judd): > >class Scr_Location { > private: > unsigned char SL_Left, SL_Top, SL_Right, SL_Bottom; > public: > Scr_Location(void); > . > . > . > const unsigned char &Left = SL_Left, &Right = SL_Right, > &Top = SL_Top, &Bottom = SL_Bottom; > . > . > . >}; I don't consider this kind of kludginess and storage waste to be worth the notational "advantage" of "x.a" over "x.a()". -- Chip Salzenberg at Teltronics/TCT , perl -e 'sub do { print "extinct!\n"; } do do()'