Poll: SizeOf(variable) vs SizeOf(type), should SizeOf(variable) be banned ?
- From: "Skybuck Flying" <spam@xxxxxxxxxxx>
- Date: Fri, 4 Jan 2008 21:24:26 +0100
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.
.
- Follow-Ups:
- Prev by Date: Re: Website: Search + Results ?
- Next by Date: Re: What is the best way to do this in Delphi?
- Previous by thread: Destructor in delphi dll - noob question
- Next by thread: Re: Poll: SizeOf(variable) vs SizeOf(type), should SizeOf(variable) be banned ?
- Index(es):
Relevant Pages
|