Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!sun!amdahl!netcom!aed From: aed@netcom.UUCP (Andrew Davidson) Newsgroups: comp.lang.c++ Subject: default init of member function args, with data members Message-ID: <20923@netcom.UUCP> Date: 15 Jan 91 04:03:37 GMT Organization: Netcom- The Bay Area's Public Access Unix System {408 241-9760 guest} Lines: 39 is there some way to have a the arguments of a member function initialized with the data members? for example class CurveEquation { Date start; Date end; Basis basis; Compound freq; public: /* line 55 */Rate *GetRate( const Date &d = start, Basis newBasis = basis, Compound newFreq = freq ); }; yields curveEq.hh:55: `start' undeclared, outside of functions curveEq.hh:56: `basis' undeclared, outside of functions curveEq.hh:57: `freq' undeclared, outside of functions I tried using the scope operator (CurveEquation::start) but that did not help Thanks Andy Davidson -- ----------------------------------------------------------------- "bede-bede-bede Thats all Folks" Porky Pig Andy Davidson Woodside CA. aed@netcom -----------------------------------------------------------------