Let's see, what's the real problem....
There should be some sort of range checking on at least the
first and second
parameter for the DATE function. Prolint can't perform range
checking, since
it cannot reliably follow program flow or predict the possible
values of
variables in a statement like a=DATE(b,c,d).
What we might implement, is a rule that checks if the second
parameter of the
DATE function contains an expression with either DAY or
TODAY in it.
Would that be usefull?
Regards,
Jurjen.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=50283
Let's see, what's the real problem....
There should be some sort of range checking on at least the
first and second
parameter for the DATE function. Prolint can't perform range
checking, since
it cannot reliably follow program flow or predict the possible
values of
variables in a statement like a=DATE(b,c,d).
What we might implement, is a rule that checks if the second
parameter of the
DATE function contains an expression with either DAY or
TODAY in it.
Would that be usefull?
Regards,
Jurjen.