Array-indexing of string yields ints

8 views
Skip to first unread message

Simon Lundmark

unread,
Jul 17, 2025, 6:33:49 AMJul 17
to ldmud...@googlegroups.com
Hey all,

We are looking to upgrade to 3.6.8 since the latest release. Going from 3.5.7 to 3.6.8 has a lot of great improvements in it.

However, we just recently discovered that 
"hello"[0] returns the integer value for 'h' instead of the string "h" which was the previous, and to me, expected behavior.
b"hello"[0] yields the same result, but here I would expect it to result in an integer value.

Is this intended behavior?

Best regards,
Simon

Simon Lundmark

unread,
Jul 17, 2025, 7:14:23 AMJul 17
to LDMud Talk
Hey all,

Obviously this is expected behavior since it's always been like this.

My apologies for taking up your time. 

Again, great work on the release! Looking forward on running with the latest version :)

Best,
Simon
Reply all
Reply to author
Forward
0 new messages