View Single Post
10/10/16, 03:11 PM   #9
tomtomhotep
 
tomtomhotep's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2015
Posts: 21
Making Statements that require assumptions

Originally Posted by Ayantir View Post

Both 32 & 64 bits :

Max length of string variable : 1000 characters
You almost gave me a heart attack when I read that!!

After experimenting with:

Lua Code:
  1. local s = string.rep("1234567890", 50)
  2.   local t = string.rep("1234567890", 50)
  3.  
  4.   for i = 1,1000 do
  5.     s = s .. t
  6.   end
  7.  
  8.   d(string.len(s))     -- displayed 500500 in chat! :)

I assume you mean "In SavedVars files, the maximum length of a string value is 1000 characters."?

But that is hardly what you actually said.
  Reply With Quote