Phantasmal MUD Lib for DGD

Phantasmal Site > Phantasmal API > API Listing > mixed_sprint

API Function: mixed_sprint

Summary:
print LPC data to a string

Defined In LPC Object:
/usr/common/sys/stringd.c

Prototype:
string mixed_sprint(mixed data)

Can Be Called By:
Anybody

Description:

Returns the string encoding the given LPC data. This could be used for debugging, or potentially to serialize data to a file. The data should contain no self-references or mixed_sprint may get into an infinite loop, repeat parts of the data or otherwise behave unpredictably.

Objects print only their names, not their contents. This limits the use of mixed_sprint for serialization.

Return Value:

The new string.

Errors:
Unrecognized DGD types may give an error.

See Also:
tree_sprint