Re: Can't pass dynamic arrays to procedure without EInvalidPointer exception
Date: Sat, 10 Jul 2004 14:34:07 -0400
On Sat, 10 Jul 2004 13:24:00 GMT, "David Reeve" <firstname.lastname@example.org>
>> >for i do
>> > diecounts[i]:=0;
>> It's too inobvious... It may be a typing saver when your head is all
>> wrapped around your code and you're blazing new coding frontiers... but
>> you come back to it in a couple of years, it's going to be worse than
>I oppose 'clever' code with a vengeance for the very reasons you state, but
>IMO there is not a lot wrong with this, provided you are working with the
>flow of this strongly typed language.
I suppose I'm something of a comment freak, in that I refuse to use those
really tricky code snippets that only a Klingon would understand and even
then I comment my code heavily to show what's going on at the moment. I
have 10 year old code I still update every couple of years. It would
otherwise be impossible to get that far removed from a body of work and
return to it otherwise.
Mind you, I look at stuff I wrote 10 years ago and I see "baby code" that
reminds me of how much I've learned over time...
>> What is the range of I?
>> Where's it defined?
>> What values does it represent?
>Surely, no more than a click away, or cursor hover? And, having a sensible
>type name, is not the answer immediately obvious?
If you're working in Delphi's IDE, that's true. I'm not. I work with an
IDE called Context and the command line compiler. This is because I don't
usually use forms or object level coding and all that RAD stuff just gets in
>I am very much a low level programmer...... electronics ->
>microprocessors->high level languages, yet I have come to like/admire the
>abstraction possibilities Delphi offers.
Same path here, thanks to a partner who was heavily into ameteur radio as a
>Bill Gate's rescued computers
>and computing from the wilds of geekishness, and we are all now free to to
>name functions along the lines of 'TurnsOffTheLights" rather than feel
>obliged to come up with something like 'dlite'.
LOL... while it's impossible to discount Gates influence on the computer
world I wouldn't be giving him that much credit. I suspect that a lot of
what has happened in computing has come along despite his efforts at
dominance... Linux, being a prime example.