mikeb@ee.ubc.ca (Mike Bolotski) (11/15/89)
A helper Test function is not found by the public Test function in delta.cc below: Script started on Tue Nov 14 23:58:23 1989 coho{mikeb}71: g++ -v delta.cc gcc version 1.36.1 (based on GCC 1.36) /usr/local/lib/gnu/gcc-cpp -+ -v -undef -D__GNUC__ -D__GNUG__ -D__cplusplus -Dmc68000 -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -D__HAVE_68881__ -Dmc68020 delta.cc /usr/tmp/cca18830.cpp GNU CPP version 1.36 /usr/local/lib/gnu/gcc-cc1plus /usr/tmp/cca18830.cpp -quiet -dumpbase delta.cc -version -o /usr/tmp/cca18830.s GNU C++ version 1.36.1 (based on GCC 1.36) (68k, MIT syntax) compiled by GNU C version 1.36. default target switches: -m68020 -mc68020 -m68881 -mbitfield delta.cc: In method int BitSet::Test (short int)const : delta.cc:19: too many arguments for method `Test' coho{mikeb}72: cat delta.cc class BitSet { protected: unsigned long *set; short numwords; int Test(short w, short b); public: BitSet(short size=0); ~BitSet(); int Test(short pos) const; }; inline int BitSet::Test(short p) const { return Test(1,2) != 0; } coho{mikeb}73: exit exit script done on Tue Nov 14 23:58:42 1989