Poll: SizeOf(variable) vs SizeOf(type), should SizeOf(variable) be banned ?



Hello,

Some programmers write (in my oppinion) sloppy code such as:

var
i : integer;
begin
I := SizeOf(I);
end;

This should be:

var
i : integer;
begin
I := SizeOf(Integer);
end;

Poll question:

Should SizeOf(variable) be banned by Borland in their next compiler/IDE
release ?

If the only concern is breaking code which uses the sloppy coding style my
vote is:

YES, BAN IT, thereby forcing people to fix this kind of damned sloppy
code/coding ;) :)

Bye,
Skybuck.


.



Relevant Pages