Is that code valid ?
Lassi A. Tuura
Lassi.Tuura@cern.ch
Tue Nov 11 01:42:00 GMT 1997
Olivier Galibert wrote:
> kftabdlg.cpp:549: parse error before `;'
> Line 549 is "return(QDate::QDate());"
>
> Changing that line to "return QDate();" works perfectly though.
That is valid code, since the class name is found in its own scope.
Hence, one should be able to repeat `QDate::' arbitrary many times. In
other words, assuming the proper declarations, the following is
perfectly valid, albeit weird code:
return (QDate::QDate::QDate::QDate ());
Cheers,
//lat
--
Lassi.Tuura@cern.ch There's no sunrise without a night
More information about the Gcc
mailing list