Post Reply 
direct string access is curious
10-17-2015, 12:17 PM
Post: #1
direct string access is curious
Suppose a := "12345";
Then a (1) gives "1" as advertised

BUT
a (1) := "Q" gives "1Q345" odd

And
a (0) := "Q" gives "Q2345" !!!

So LHS strings are 0..n-1 indexed
but RHS are are 1..n. indexed

Very curious. Good to know.If you play with string theory.

I work with android Prime only for now on my
Galaxy Tab Pro/Note 2
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
direct string access is curious - ji3m - 10-17-2015 12:17 PM
RE: direct string access is curious - Han - 10-17-2015, 01:28 PM
RE: direct string access is curious - ji3m - 10-17-2015, 02:45 PM
RE: direct string access is curious - DrD - 10-17-2015, 03:51 PM
RE: direct string access is curious - ji3m - 10-18-2015, 10:24 PM
RE: direct string access is curious - DrD - 10-19-2015, 10:11 AM



User(s) browsing this thread: 1 Guest(s)