[Gambas-user] Wiki Update

Randall Morgan rmorgan62 at ...626...
Wed Sep 17 14:22:35 CEST 2014


We were looking at: http://gambaswiki.org/wiki/cat/arraydecl
But don't all array indices in Gambas begin at Zero?

On Wed, Sep 17, 2014 at 5:15 AM, Tobias Boege <taboege at ...626...> wrote:

> On Wed, 17 Sep 2014, Randall Morgan wrote:
> > A colleague pointed out to me that the wiki does not specify is Gambas
> > arrays are Zero or One based index. I told him zero based. However, I
> > though the wiki maintainer might want to add that to the wiki page for
> > arrays.
> >
>
> Which do you mean? There are Boolean[], String[], etc. (the native arrays)
> under /comp/gb/, where the Array class plays a special role. We have array
> pages under /lang/, too.
>
> The problem is that you can only say that the native array classes in
> the gb component have zero-based indices. Putting this note into the
> documentation of the Array class wouldn't be quite correct as each class
> may decide upon their indexing on their own. You can even index by using
> Floats or Objects.
>
> Maybe we should add that sentence to every native array page...?
>
> Regards,
> Tobi
>
> --
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
>
>
> ------------------------------------------------------------------------------
> Want excitement?
> Manually upgrade your production database.
> When you want reliability, choose Perforce
> Perforce version control. Predictably reliable.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
If you ask me if it can be done. The answer is YES, it can always be done.
The correct questions however are... What will it cost, and how long will
it take?



More information about the User mailing list