Re: Poll: SizeOf(variable) vs SizeOf(type), should SizeOf(variable)be banned ?
- From: "Skybuck Flying" <spam@xxxxxxxxxxx>
- Date: Sun, 6 Jan 2008 16:22:04 +0100
No the point is:
If the variable version is banned then you can't make that programming
mistake.
If you do try to make that mistake the compiler will give you a compile
error.
And then a good programmer like you will automatically know what the problem
is, must use SetLength for dynamic arrays.
Bye,
Skybuck.
.
- Follow-Ups:
- References:
- Poll: SizeOf(variable) vs SizeOf(type), should SizeOf(variable) be banned ?
- From: Skybuck Flying
- Re: Poll: SizeOf(variable) vs SizeOf(type), should SizeOf(variable) be banned ?
- From: Rob Kennedy
- Re: Poll: SizeOf(variable) vs SizeOf(type), should SizeOf(variable)be banned ?
- From: Rudy Velthuis
- Re: Poll: SizeOf(variable) vs SizeOf(type), should SizeOf(variable)be banned ?
- From: Skybuck Flying
- Re: Poll: SizeOf(variable) vs SizeOf(type), should SizeOf(variable)be banned ?
- From: Rob Kennedy
- Poll: SizeOf(variable) vs SizeOf(type), should SizeOf(variable) be banned ?
- Prev by Date: Re: Poll: Scrap new and dispose from the language ?
- Next by Date: Re: Can IntraWeb be used with MySQL without Borland/Retarded/BDE Crap and still interface with DB Web components ?
- Previous by thread: Re: Poll: SizeOf(variable) vs SizeOf(type), should SizeOf(variable)be banned ?
- Next by thread: Re: Poll: SizeOf(variable) vs SizeOf(type), should SizeOf(variable)be banned ?
- Index(es):
Relevant Pages
|