Branch: Tag:

2014-08-16

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

Make illegal casts throw exception.

376:    //! It is possible to cast a country to a string,    //! which will be the same as performing    //! @expr{country->name;@}. -  string cast(string to) +  protected string cast(string to)    {    if (to[..5]=="string") return name; -  error("can't cast to %O\n",to); +  return UNDEFINED;    }       string _sprintf(int t)