Does kturtle have array?

116 views
Skip to first unread message

yzhh

unread,
Jun 26, 2008, 8:16:20 AM6/26/08
to KTurtle; an eduactinal programming environment
I searched many places but found no result concerning "array in
kturtle" - no yes or no answer to the question.

If there is not, will there be? I think array is a fundamental
concept in programming, and easily understandable by students who
understand for-loops. It's just a pity if it's not there.

cies

unread,
Jun 26, 2008, 11:06:56 AM6/26/08
to kdeedu-...@googlegroups.com
no, there is no array in kturtle yet.

might come though..

if there is an agreed-upon syntax proposal, and a big set of unittest
(that implies that the unitest framework gets love and then useable),
i promis implement it (no dealine though, but i usually keep
promisses).

please keep in mind that the syntax proposal is quite an interesting
thing, i mean "are arrays a little like objects", or "c like".. so far
kturtle handles types dynamically, so this is also true for arrays
then (that kind of messes witht the c-style approach). the there
should be ways to put/add/get/remove/etc stuff from the array. (i love
the ruby syntax for all this)
i guess i was on ranting mode for the last paragraph.. oops.


ciao!
_cies.

yzhh

unread,
Jun 26, 2008, 12:35:33 PM6/26/08
to KTurtle; an eduactinal programming environment
Thank you for answering.

I think the semantics of array in Visual Basic is suitable for users
of kturtle: explicitly declared single/multiple dimensional array
whose index can only be integers starting from 0. "Arbitrary objects
as index" does not seem a good idea, it may well confuse novice
programmers.

And for the syntax, A[5] looks better than A(5) for me, although the
use of '[ ]' has been there for block-statements. (have you changed
that?)

cies

unread,
Jul 15, 2008, 12:00:18 PM7/15/08
to kdeedu-...@googlegroups.com
yups thats changed now with the kde4 version

so [ and ] can be used for selecting elements from arrays

Reply all
Reply to author
Forward
0 new messages