def で配列を返すこともできるのよ~ def empty_array() var v[0] return v end var x[100000] ? len(x) x = empty_array() ? len(x) この手の超重宝しています。