Path: utzoo!attcan!uunet!nih-csl!lhc!ncifcrf!haven!uflorida!ziggy!card From: card@ziggy.EDU (James Card) Newsgroups: comp.lang.c++ Subject: operator[] Keywords: array C++ overloaded Message-ID: <1442@ziggy.EDU> Date: 21 Oct 90 05:56:13 GMT Organization: University of South Florida, Tampa, Fl Lines: 11 Is there any way of telling which side of the '=' a class [] operator is on? I was thinking of a possible application in which a disk file could be used as a virtual array. A constructor could be used to open the "virtual" array and a destructor would be used to close the "virtual" array. Using this scheme, object[] operations appearing on the left hand side of the '=' would cause a write to the associated file, and object[] appearing on the right hand side of the '=' would cause a read of the disk array. Thanks in advance, James Card