01-02-2010, 11:54 AM
I also have a question about 17-0-3 (and whole group of 17-0-*)
As I understand the rules allow declaration of a variable/parameter with the same name as function from standard library?
E.g.
As I understand it, 17-0-1 restricts #define/#undef only, 17-0-2 restricts stdandard library macros/objects (not functions) and 17-0-3 restricts cases when we define a function (at least this is what is suggested by normative text IMO).
Maybe the overridden in rule headline isn't supposed to be overloaded as gs suggests, but should be understood more like reused (although I don't know why would there be a different word used than in 17-0-2, which uses reused)
As I understand the rules allow declaration of a variable/parameter with the same name as function from standard library?
E.g.
Code:
char max;
void foo(bool abort);
As I understand it, 17-0-1 restricts #define/#undef only, 17-0-2 restricts stdandard library macros/objects (not functions) and 17-0-3 restricts cases when we define a function (at least this is what is suggested by normative text IMO).
Maybe the overridden in rule headline isn't supposed to be overloaded as gs suggests, but should be understood more like reused (although I don't know why would there be a different word used than in 17-0-2, which uses reused)