Thread Rating:
  • 390 Vote(s) - 2.76 Average
  • 1
  • 2
  • 3
  • 4
  • 5
type-switch で Array-of 、HashTable-of を判別したい
12-26-2012, 07:13 PM,
#1
type-switch で Array-of 、HashTable-of を判別したい
type-switch でクラス型の判定を行う際、
配列(Array-of)や、ハッシュテーブル(HashTable-of)を判別するにはどうすればよいですか。

目的は、あるインスタンスの中身が配列、もしくはHashTableであれば、
コンテナループで中の要素を確認したいからです。

Array-of int も、Array-of String も同じように扱いたいのですが、
type-switch では CASE 文をパラメタの数だけ用意しなければいけないのでしょうか。


Messages In This Thread
type-switch で Array-of 、HashTable-of を判別したい - by umemura - 12-26-2012, 07:13 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  Array-of が CDEで認識されない? umemura 1 2,494 04-04-2014, 06:28 PM
Last Post: twada
  #t , any , Type の違いは? umemura 3 3,773 09-17-2013, 08:05 PM
Last Post: umemura
  Array-of とSet-of の違い yosmas 2 4,003 08-18-2011, 05:09 PM
Last Post: yosmas
Forum Jump:


Users browsing this thread:
1 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('680')