Branch: Tag:

2014-08-18

2014-08-18 18:12:05 by Martin Nilsson <nilsson@opera.com>

Improved cast method.

570:      protected string|array cast(string to)   { -  if (to[..4]=="array") +  switch(to) +  { +  case "array":    return ({lat,long}); -  -  if (to[..5]=="string") +  case "string":    return latitude()+" "+longitude(); -  +  }    return UNDEFINED;   }