Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
V!ctor: Suggestion
#1
Version 0.13 allows to index strings as
ascii=b$[4]
I have observed the indexes must go fom 0 to len(b$)-1, as in C. However all string functions (LEFT$, MID$,...) use indexes 1 to len(b$). Would it be possible to make string indexing match the rest of the functions?
Antoni
Reply
#2
Noo

Make it the same as pointers, where [0] = first element.

Theres no compatibility to keep as it's a new feature.

I say keep it as the rest of the pointer stuff.
Reply
#3
Welcome back, Z!ire!

Yours is a good reason to keep it like it is...
Antoni
Reply
#4
Yeah, what Z!re said, it's pointer indexing, and they start at 0.
Reply
#5
lol we really don't to compound the odditys in BASIC with more strange things Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)