I like the stronger checks of the X# compiler
Posted: Wed Feb 24, 2016 1:19 pm
Hi,
compiling this code:
gave me the compiler warnings
warning XS1717: Assignment made to same variable; did you mean to assign something else?
warning XS0165: Use of unassigned local variable 'cKey'
and in fact, the compiler is right!
Thank you for discovering such (stupid) errors!
Wolfgang
compiling this code:
Code: Select all
nLen := oParameter:Count - 1
for nI := 0 upto nLen
cKey:= cKey
cParameter:Replace( "@" + cKey + "@", oParameter[cKey] )
next
warning XS1717: Assignment made to same variable; did you mean to assign something else?
warning XS0165: Use of unassigned local variable 'cKey'
and in fact, the compiler is right!
Thank you for discovering such (stupid) errors!
Wolfgang