« | メイン | »

あぁHPそろそろ整頓せねば

ところで、ActionScript3.0って私の大好きなオーバーロード出来ないんですね(´・ω・)

納得の行かない回避方法は下記
こんな更新ばかりで申し訳ないです

コンストラクタでこのようなオーバーロードしたいとき
class Test{
  function Test(){}
  function Test( a:int, b:String, c:String){}
}

下記のように書き直したら同等処理になります。
class Test{
  function Test(... args){
    if(args.length == 0){
      trace("OKです。ここがTest()と同等の処理部");
    }else if(args.length == 3){
      if(args[0] is int && args[1] is String && args[2] is String){
        trace("OKです。ここがTest( a:int, b:int, c:int)と同等の処理部");
      }else{
        trace("Testクラスの引数の型がおかしいです。");
      }
    }else{
      trace("Testクラスの引数の数がおかしいです。");
    }
  }
}

・「...」は引数の数制限なしで指定可です。
・値は引数「args」の中に配列で入ります

(´・ω・`)いかが?

  

Very valid, pithy, scucicnt, and on point. WD.

Saiful:

Well macadmaia nuts, how about that.

Blerona:

I just want to say I am just beginner to blogs and absolutely loved your web page. Probably I’m want to bookmark your website . You certainly come with tremendous articles. Thanks a lot for sharing your webpage.

Hiya, I'm truly pleased I have set up this information. Now bloggers distribute only concerning gossips and internet and this is especially frustrating. A good place with attractive satisfy, this is what I ought. Gratitude for keeping this website, I'll live visiting it. Perform you accomplish newsletters? Can not attain it.

Some truly superb content on this internet site , thankyou for contribution.

great issues altogether, you just gained a brand new reader. What could you recommend in regards to your put up that you just made some days in the past? Any certain?

A lot of thanks for all your efforts on this web site. Gloria really loves engaging in investigation and it's easy to understand why. We all notice all relating to the dynamic mode you produce precious techniques by means of this blog and attract contribution from some others about this content while my girl is really being taught so much. Take advantage of the rest of the year. You are always carrying out a really good job.

I cling on to listening to the rumor lecture about receiving boundless online grant applications so I have been looking around for the best site to get one. Could you advise me please, where could i find some?

I'm really impressed with your writing skills as well as with the layout on your blog. Is this a paid theme or did you modify it yourself? Anyway keep up the nice quality writing, it’s rare to see a nice blog like this one nowadays..

Hey there would you mind letting me know which hosting company you're using? I've loaded your blog in 3 different web browsers and I must say this blog loads a lot quicker then most. Can you recommend a good hosting provider at a reasonable price? Thanks, I appreciate it!

You can definitely see your skills in the work you write. The world hopes for more passionate writers like you who aren't afraid to say how they believe. Always go after your heart.

Thanks, I've been looking for facts about this subject for ages and yours is the best I have located so far.

I conceive you have observed some very interesting points , thankyou for the post.

Sweet blog! I found it while browsing on Yahoo News. Do you have any suggestions on how to get listed in Yahoo News? I've been trying for a while but I never seem to get there! Cheers|

何よ、ここのスペース(´・ω・`)