Re: Is my Control a cotrol array ??

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Bob Butler" <tiredofit@xxxxxxxxxxx> wrote in message
news:%23pnaA7GVGHA.2704@xxxxxxxxxxxxxxxxxxxxxxx
If I needed to change every second year it wouldn't be a fixed array.

Why would it be a fixed array anyway? Surely the years are not hard coded?

It
would be dimensioned dynamically or I wouldn't use that technique in the
first place.

So the technique is becoming dependant on the data?

That's because of the way it is implemented currently

That's simply wrong. Non zero based arrays will always be slower.

and, even if it were
always true, it would make sense to leave the array syntax in VB alone and
create a new syntax to define the more performant vector data type. That
way people could move their code forward and then rewrite as needed to
gain
additional performance if the decide it is necessary.

That was something they considered but decided it would be too confusing for
programmers.

Telling me that I
have to spend uncountable man-hours rewriting and re-testing thousands of
lines of working code because when I'm done it will be faster is simply
ludicrous.

I never said they couldn't have provided a better upgrade path. I just don't
agree with the methods you wish to use.

Absolutely. I got out of the habit of using it years ago but reading the
other threads I see exactly how useful it could be and now I'm watching
for
places to utilize it.

There you go. Greater compatibility would have detracted from dot net. I'm
not sure how you consider having gosub in the language a good thing.

alpine said it best

Read his post, he really said nothing at all except he disagrees. If that's
what you consider as "said it best" .....

And then they'll be free to break the extensions.

Minor problem.

Michael


.



Relevant Pages

  • Re: Is my Control a cotrol array ??
    ... Fixed size array are what's irrelevant. ... The technique should be chosen based on the ... language and understand that things like keeping Gosub in the VB.Net ... What you don't like is hearing someone's opinion that varies from ...
    (microsoft.public.vb.controls)
  • Re: Is my Control a cotrol array ??
    ... What happens if you store data for years from ... If I needed to change every second year it wouldn't be a fixed array. ... way people could move their code forward and then rewrite as needed to gain ... lines of working code because when I'm done it will be faster is simply ...
    (microsoft.public.vb.controls)
  • Re: implementation of finite state machine
    ... > Use an array of function pointers. ... > The index into the array, ... Another common technique is a switch statement, ... perform based on either the transition or the current state. ...
    (comp.programming)
  • Re: Newbie array question
    ... >the technique I was after. ... Inversing the hash would have been the first ... build and discard a second array solely for a single lookup. ...
    (comp.lang.php)
  • Re: Few doubts (wrong behaviour or correct )
    ... you'll be accessing the array 'b' beyond its end. ... The incorrect assumption that "struct hack" is ... That specifically refers to using a zero-sized array in the declaration. ... "struct hack" this might be a good temporary technique. ...
    (comp.lang.c)