blob: 52367374860421a78595724a399cd5557391dd1c [file] [log] [blame]
Zesstra715ec202025-07-09 22:18:31 +02001DEPRECATED
MG Mud User88f12472016-06-24 23:31:02 +02002SYNOPSIS
Zesstrad59c3892019-11-28 20:53:39 +01003 string make_shared_string(string str)
4 bytes make_shared_string(bytes str)
MG Mud User88f12472016-06-24 23:31:02 +02005
Zesstra715ec202025-07-09 22:18:31 +02006DESCRIPTION
7 Puts <str> in the table of shared strings of the game.
MG Mud User88f12472016-06-24 23:31:02 +02008
Zesstra715ec202025-07-09 22:18:31 +02009 If the string is used by several variables/objects this
10 saves memory. Keys of alists and mappings are always shared
11 strings.
MG Mud User88f12472016-06-24 23:31:02 +020012
Zesstra715ec202025-07-09 22:18:31 +020013 In LDMud 3.3, this function is no longer necessary: strings
14 are shared as much as possible anyway, and the driver automatically
15 converts untabled strings into tabled strings after some time.
MG Mud User88f12472016-06-24 23:31:02 +020016
Zesstra715ec202025-07-09 22:18:31 +020017HISTORY
18 Introduced in LDMud 3.2.6; following a suggestion from Tubmud.
19 Deprecated in LDMud 3.3.531.