Re: 0-based Indexing

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi Juergen,

> 
> Hi Igor, you wrote:
> 
> > If you have many basic arrays with 0-indexing and want
> > to translate them into EU, yes, this is a real pain and
> > a rich source of the subtle bugs, especially when
> > indexes are calculated.
> >
> > I have dropped some my translations 
> >  from basic into EU just because of too 
> >  many confusions in indexes,
> > especially if some of the 0-elements
> > are or are not empty.
> >
> > Maybe, someone has a powerful tip,
> > other than just a good attention?
> 
> Instead of creating, writing, and reading the 
>  arrays/sequences directly, you can access them
> via functions. Of course, you have the full power
> and flexibility of Euphoria. smile 

[snipped examples]

Yes, I used this way for the first step of translation
to get translated from basic program working as expected.
But then, step by step, I replaced the functions calls
with the direct indexing of sequences to have an
optimum effect. 
And the translation still was not very easy.
But the program translated from basic into EU
becomes infinitely more flexible and powerful 
for further improvements. 
I say about QB4.5 this moment.

Regards,
Igor Kachan
kinz at peterlink.ru

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu