Branch: Tag:

2014-08-16

2014-08-16 21:26:00 by Martin Nilsson <nilsson@opera.com>

Make illegal casts throw exception.

629:    //!    //! @param type    //! Type to cast to. -  mixed cast(string type) +  protected mixed cast(string type)    {    if (type == "string")    return _sprintf(); -  error("Cast to %s not supported\n", type); +  return UNDEFINED;    }       /* Here come the functions that actually do some work */