Path: utzoo!attcan!uunet!jarthur!usc!samsung!umich!sharkey!cfctech!teemc!mibte!gamma!thumper!clayton From: clayton@thumper.bellcore.com (R. Clayton) Newsgroups: comp.lang.c++ Subject: Dewhurst & Stark questions. Message-ID: <1794@thumper.bellcore.com> Date: 12 Jan 90 01:52:35 GMT Organization: Bellcore, Morristown, N.J. Lines: 16 The following code appears in the middle of page 107 in Dewhurst and Stark's "Programming in C++": extern char *home_dir, *path, *file; Pathname home = home_dir; Pathname file = home + path + file; FILE *fp = file->open(); Is this code correct? Can variables (i.e., file) be overloaded? Assuming the final reference to file is as a Pathname, shouldn't the access operator be "." instead of "->"? Running versions of this code through g++ 1.36.1 result in the expected compilation errors. R. Clayton clayton@thumper.bellcore.com {rutgers!}bellcore!thumper!clayton