Branch: Tag:

2014-08-16

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

Make illegal casts throw exception.

147:    return this_object();    }    -  mixed cast(string to) { +  protected mixed cast(string to) {    switch(to) {    case "object": return this_object();    case "array": return indices(vals);    case "multiset": return (multiset)indices(vals);    default: -  error("Can not cast ADTSet to "+to+".\n"); +  return UNDEFINED;    }    }    }