procedure enabler( const s : string ) ; procedure rejecter( const var s : string ) ;
enabler( 'lit2' ) ; rejecter( 'literal' ) ;
Why did compiling the call to "enabler" first result in the compiler accepting the call to "rejecter"?
Jay Michael wrote:
procedure enabler( const s : string ) ; procedure rejecter( const var s : string ) ;
enabler( 'lit2' ) ; rejecter( 'literal' ) ;
Why did compiling the call to "enabler" first result in the compiler
accepting the call to "rejecter"?
Plain bug: compiler got wrong internal bookkeeping and compiling enabler overwrote info about parameter list of rejecter.