pike.ida.liu.se
Search for
Home > Docs > Pike reference

[Top]
Codec

Codec()->nameof()


Method nameof

mixed nameof(object|function|program x)

Description

Called by encode_value() to encode objects, functions and programs.

Returns

Returns something encodable on success, typically a string. The returned value will be passed to the corresponding objectof() , functionof() or programof() by decode_value() .

Returns UNDEFINED on failure.

Note

encode_value() has fallbacks for some classes of objects, functions and programs.

See also

objectof() , functionof() , objectof()

Module reference for Pike v7.8 release 116, 2008-12-31