Re: string literal as const var parameter
30 Jun
2012
30 Jun
'12
6:32 a.m.
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"?
9 Jul
9 Jul
2:15 p.m.
New subject: string literal as const var parameter
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. -- Waldek Hebisch hebisch@math.uni.wroc.pl
5152
Age (days ago)
5161
Last active (days ago)
1 comments
2 participants
participants (2)
-
Jay Michael -
Waldek Hebisch