Dokumentation zu: to_object(E)

HR Image


SYNOPSIS
        object to_object(string arg)
        object to_object(closure arg)
        object to_object(object arg)

        (object)<value>

DESCRIPTION
        The argument is converted into an object, if possible.

        For strings, the object with a matching object_name() is
        returned, or 0 if there is none, as find_object() does.

        For (bound!) closures, the object holding the closure is
        returned (for 'alien lfun closures' this is the object which
        created the closure, not the object the lfun is defined in).

        Objects and the number 0 return themselves.

BUGS
        The cast notation only works if the precise type of <value>
        is known at compile-time. This will not be fixed - use the
        function form instead.

SEE ALSO
        find_object(E), to_array(E), to_int(E), to_string(E),
        get_type_info(E)

Die Seite ist auch in Deutsch vorhanden.

Start » Magierhandbuch » Docu » Efun » To_object Letzte Generierung: 25.04.2021, 01:58
Email an: mud@wl.mud.de
Valid HTML 4.01!