Branch: Tag:

2013-08-30

2013-08-30 16:06:30 by Martin Nilsson <nilsson@opera.com>

Added some conveience to compound ASN.1 objects.

202:    return this;    }    +  protected mixed `[](mixed index) +  { +  if( intp(index) ) +  return elements[index]; +  return ::`[]([string]index); +  } +  +  protected int _sizeof() +  { +  return sizeof(elements); +  } +     protected string _sprintf(int t,mapping(string:int)|void params) {    if (params) ++params->indent; else params=([]);    return t=='O' && sprintf("%O(%s %*O)", this_program, type_name, params, elements);