[Gambas-user] Wiki Update

Tobias Boege taboege at ...626...
Wed Sep 17 14:15:33 CEST 2014


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




More information about the User mailing list