class ca{
var v:[Int] = [Int]();
subscript(index:Int)->Int{
return v[index];
}
}
var v = ca();
v.v.append(1);
v.v.append(2);
println(v[1]);
class ca{
var v:[Int] = [Int]();
subscript(index:Int)->Int{
return v[index];
}
}
var v = ca();
v.v.append(1);
v.v.append(2);
println(v[1]);