 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Dr John Stockton Guest
|
Posted: Mon Jan 03, 2005 12:53 pm Post subject: Re: SetLength on Dynamic Array of Records |
|
|
JRS: In article <33r2ngF44ipegU1 (AT) individual (DOT) net>, dated Sun, 2 Jan 2005
14:08:15, seen in news:alt.comp.lang.borland-delphi, Rob Kennedy
<me3 (AT) privacy (DOT) net> posted :
| Quote: |
Do you have range checking turned on?
|
That is, ISTM, a Frequently Asked Question - or ought to be. How about
putting something like it in the FAQ?
Or is it considered that the sort of person who develops/debugs with
runtime checks off is the sort of person who will never read a FAQ?
It is covered in the comp.lang.pascal.borland FAQ.
XP set.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Delphi 3 Turnpike 4 ©
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/&c., FAQqy topics & links;
<URL:http://www.bancoems.com/CompLangPascalDelphiMisc-MiniFAQ.htm> clpdmFAQ;
<URL:http://www.borland.com/newsgroups/guide.html> news:borland.* Guidelines
|
|
| Back to top |
|
 |
Rob Kennedy Guest
|
Posted: Mon Jan 03, 2005 7:44 pm Post subject: Re: SetLength on Dynamic Array of Records |
|
|
Dr John Stockton wrote:
| Quote: | JRS: In article <33r2ngF44ipegU1 (AT) individual (DOT) net>, dated Sun, 2 Jan 2005
14:08:15, seen in news:alt.comp.lang.borland-delphi, Rob Kennedy
[email]me3 (AT) privacy (DOT) net[/email]> posted :
Do you have range checking turned on?
That is, ISTM, a Frequently Asked Question - or ought to be. How about
putting something like it in the FAQ?
|
Well, it's a question I ask often enough, but I'm not sure how you plan
to answer it yes or no in the FAQ!
--
Rob
|
|
| Back to top |
|
 |
Bruce Roberts Guest
|
Posted: Mon Jan 03, 2005 7:51 pm Post subject: Re: SetLength on Dynamic Array of Records |
|
|
"Dr John Stockton" <spam (AT) merlyn (DOT) demon.co.uk> wrote
| Quote: | Do you have range checking turned on?
That is, ISTM, a Frequently Asked Question - or ought to be. How about
putting something like it in the FAQ?
|
Agreed.
| Quote: | Or is it considered that the sort of person who develops/debugs with
runtime checks off is the sort of person who will never read a FAQ?
|
ISTM that many do consult the FAQ. Witness the rarity of Q1 postings in the
ng. There will always be those who do not, either through ignorance or sheer
laziness.
Perhaps the question could deal with several compiler directives that affect
development. Specifically RangeChecking, OverflowChecking, Warnings and,
possibly, BoolEval.
(IMO it would be nice if the answer suggested that range and overflow
checking be left on in release code, except for the most time-critical
code.)
|
|
| Back to top |
|
 |
Maarten Wiltink Guest
|
Posted: Mon Jan 03, 2005 9:05 pm Post subject: Re: SetLength on Dynamic Array of Records |
|
|
"Bruce Roberts" <ber (AT) bounceitattcanada (DOT) xnet> wrote
| Quote: | "Dr John Stockton" <spam (AT) merlyn (DOT) demon.co.uk> wrote in message
news:yqkQWPcgBU2BFwrX (AT) merlyn (DOT) demon.co.uk...
Do you have range checking turned on?
That is, ISTM, a Frequently Asked Question - or ought to be. How
about putting something like it in the FAQ?
Agreed.
|
Aye. But Rob is right, how to phrase it?
| Quote: | Or is it considered that the sort of person who develops/debugs with
runtime checks off is the sort of person who will never read a FAQ?
ISTM that many do consult the FAQ. Witness the rarity of Q1 postings
in the ng. There will always be those who do not, either through
ignorance or sheer laziness.
|
If I may, I would like to take the opportunity to urge people to not
give answers that are in the miniFAQ, except by referring to it.
| Quote: | Perhaps the question could deal with several compiler directives that
affect development. Specifically RangeChecking, OverflowChecking,
Warnings and, possibly, BoolEval.
(IMO it would be nice if the answer suggested that range and overflow
checking be left on in release code, except for the most time-critical
code.)
|
All good ideas if you ask me.
Groetjes,
Maarten Wiltink / Evil miniFAQ Boss
|
|
| Back to top |
|
 |
Dr John Stockton Guest
|
Posted: Tue Jan 04, 2005 1:25 pm Post subject: Re: SetLength on Dynamic Array of Records |
|
|
JRS: In article <41d9b3b5$0$6208$e4fe514c (AT) news (DOT) xs4all.nl>, dated Mon, 3
Jan 2005 22:05:24, seen in news:alt.comp.lang.borland-delphi, Maarten
Wiltink <maarten (AT) kittensandcats (DOT) net> posted :
| Quote: | "Bruce Roberts" <ber (AT) bounceitattcanada (DOT) xnet> wrote in message
news:aChCd.4482$7n1.288119 (AT) news20 (DOT) bellglobal.com...
"Dr John Stockton" <spam (AT) merlyn (DOT) demon.co.uk> wrote in message
news:yqkQWPcgBU2BFwrX (AT) merlyn (DOT) demon.co.uk...
Do you have range checking turned on?
That is, ISTM, a Frequently Asked Question - or ought to be. How
about putting something like it in the FAQ?
Agreed.
Aye. But Rob is right, how to phrase it?
|
It is generally accepted in newsgroups that a FAQ need not handle only
questions exactly matching what is explicitly frequently asked; but that
the alleged questions are there merely to represent what ought to be
frequently asked, in order that Frequent Answers can then follow.
"What compiler settings should be used, and where may they be found?"
Include what is (in D3) under Project Options Compiler (including those
words to show the route), with Range I/O Overflow, all Debug, all
Messages, ON; probably Strict var-strings too - adjust to match
recent/current Delphi, too.
| Quote: | (IMO it would be nice if the answer suggested that range and overflow
checking be left on in release code, except for the most time-critical
code.)
|
Agreed. If such code is put at the bottom of its unit, it can be
preceded by such as {$R-}.
Most cases where overflow is legitimate can be handled by type-casting,
use of bigger types, use of Inc/Dec, or re-thinking; but sometimes it
must be allowed.
Those who are desperate for speed can be divided into two classes : true
experts, who will know when to overrule FAQ advice, and /hoi polloi/
such as myself who do better to aim only at being reasonably fast.
One might also add that Complete Boolean Evaluation should be set on/off
in writing within each relevant unit; it is possible to write code which
works equally well in either state, but with different results.
Likewise for Aligned Record Fields, and maybe others.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Delphi 3 Turnpike 4 ©
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/&c., FAQqy topics & links;
<URL:http://www.bancoems.com/CompLangPascalDelphiMisc-MiniFAQ.htm> clpdmFAQ;
<URL:http://www.borland.com/newsgroups/guide.html> news:borland.* Guidelines
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|